GetAdminConsentURL
Generates an admin consent URL that an administrator must open to grant access to the application. Essential for configuring OAuth authentication in SharePoint.
Input
| Name | Type | Required | Description |
| CallbackUrl | String | False | The URL where the user will be redirected after authorizing your application. This must match the Reply URL configured in the Azure AD app settings. |
| State | String | False | A value that maintains state between the authorization request and callback. Used to prevent cross-site request forgery (CSRF) attacks. |
| Scope | String | False | The permissions being requested from the administrator. Determines what level of access the application will receive.
The default value is AllSites.Manage. |
Result Set Columns
| Name | Type | Description |
| URL | String | The generated authorization URL that must be entered into a web browser by an administrator to grant consent and authorize the application. |