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.
- Retrieving the Configuration:
- Create an API endpoint in your backend that queries the custom database for the
developerUrl
and other configurable properties. - Use this endpoint to retrieve the values when needed. Possible Workarounds
- 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. - 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.
- 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.
- Create an API endpoint in your backend that queries the custom database for the
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.