Retrieve "configurableProperties" value once set by the admin in an organisation for an app in Teams?

Pradeep Patel 0 Reputation points
2025-02-04T14:22:11.79+00:00

I have an app that is published to the Microsoft Store, which contains the following in its app manifest file,

"configurableProperties": [ "name", "smallImageUrl", "largeImageUrl", "shortDescription", "longDescription", "accentColor", "developerUrl" ]

As an admin I want to change the "developerUrl" property via the https://admin.teams.microsoft.com/ portal. Having set this value, is it possible to retrieve it using the Microsoft Graph API? I ask as when retrieving information on the app from the Graph API, I can see information from the manifest within the "teamsAppDefinition" (https://learn.microsoft.com/en-us/graph/api/resources/teamsappdefinition?view=graph-rest-1.0) property but cannot see any reference to the "developerUrl" field or any other url field in here.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,807 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,954 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,537 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Techhelp Volunteer 0 Reputation points
    2025-02-04T15:02:13.27+00:00

    Possible Workaround. Example of Custom Storage Approach

    Setting the Configuration:

    When an admin sets the developerUrl in the Teams admin center, your app's backend can capture this change (if possible) and store it in a custom database.

    1. Retrieving the Configuration:
      • Create an API endpoint in your backend that queries the custom database for the developerUrland other configurable properties.
      • Use this endpoint to retrieve the values when needed. Possible Workarounds
      1. Custom Storage: If you need to retrieve the developerUrl or other configurable properties programmatically, you might consider storing these configurations in a custom data store (e.g., Azure Table Storage, SQL Database) when the admin sets them. You can then retrieve these values from your custom store using an API or directly from the database.
      2. Graph API Extensions: Keep an eye on updates to the Microsoft Graph API. Microsoft frequently updates its APIs, and future versions might include support for retrieving configurable properties.
      3. Teams App API: If your app has a backend service, you can create an API endpoint that returns the configured properties. This way, you can manage and retrieve the configurations internally.

    Example Code Snippet for Custom API Endpoint

    [HttpGet("configurableProperties")]

    public async Task<IActionResult> GetConfigurableProperties()

    {

    // Query your custom database for the configurable properties
    
    var configurableProperties = await _dbContext.ConfigurableProperties.FindAsync(appId);
    
    if (configurableProperties == null)
    
    {
    
        return NotFound();
    
    }
    
    return Ok(configurableProperties);
    

    }

    Note: As of now, the Microsoft Graph API does not provide a direct way to retrieve configurableProperties like developerUrl set by an admin in the Teams admin center. Using a custom storage solution and creating your own API endpoint is a practical workaround until Microsoft may potentially adds this functionality to the Graph API. You may need to refer to the latest Microsoft Graph API documentation for any new features or updates that might address this.

    Hope above information helps.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.