ADO.NET Provider for Microsoft Teams

Build 25.0.9434

GetAdminConsentURL

Creates a secure admin authorization link for granting delegated or application permissions to Teams-based apps.

Input

Name Type Required Description
CallbackUrl String False The URL to which the user is redirected after granting admin consent. This must exactly match the Reply URL configured in the Azure Active Directory app registration.
State String False Opaque string value used to maintain state between the request and callback. Useful for preventing cross-site request forgery attacks and preserving user session.
Scope String False Space-separated list of permissions the application is requesting admin consent for. Example: User.Read Group.ReadWrite.All Directory.Read.All.

The default value is https://graph.microsoft.com/group.read.all https://graph.microsoft.com/group.readwrite.all https://graph.microsoft.com/user.read.all https://graph.microsoft.com/appcatalog.readwrite.all https://graph.microsoft.com/presence.read.all https://graph.microsoft.com/chat.read https://graph.microsoft.com/channelmessage.read.all https://graph.microsoft.com/chat.readbasic https://graph.microsoft.com/chat.readwrite.

Result Set Columns

Name Type Description
URL String Generated authorization URL that must be opened in a browser to prompt the admin for consent and obtain the verifier token.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434