MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Is tenant parameter in adminconsent request actually required? #113449

Closed ahaeber closed 1 year ago

ahaeber commented 1 year ago

At the following section in the documentation https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-admin-consent#request-the-permissions-from-a-directory-admin it currently looks as this:

image

In the example given for the adminconsent request there is no tenant query parameter. However, the table below shows it as required. Could you please check whether it is optional or required?

It appears to work without the tenant query parameter, so I believe it should be optional.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

YashikaTyagii commented 1 year ago

@ahaeber Thanks for your feedback! We will investigate and update as appropriate.

SaibabaBalapur-MSFT commented 1 year ago

Hi @ahaeber tenant query parameter is optional in the admin consent request. If it is not provided, the user will be prompted to select the tenant they want to grant consent. However, if you want to specify a specific tenant, you can include the tenant query parameter in the request. The example given in the documentation is correct, and it is not necessary to include the tenant query parameter in the request.

Still if you have further question I'd recommend working closer with our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds. [Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows. [Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1