The ID of the registered app to use for authorization.
The ID of the Azure AD tenant where the app has been registered.
The redirect URI value specified in the registered app’s configuration.
Provide any additional Graph permissions that may be required by your app.
OptionalauthFlowParams: AuthFlowParamsOptionally modify the authorization process by providing additional parameters.
OptionalauthWindowOptions: AuthWindowOptionsOptionally change the appearance and behavior of the authorization popup window by specifying additional options.
OptionaluseCurrentWindowForAuthFlow: booleanOptionally use the current window for the authorization flow instead of opening a new window.
A connection which can be used to execute requests against the Microsoft Graph API.
Initiates the OAuth 2.0 authorization code flow and establishes a connection with a Microsoft 365 tenant. Requires that an app has been registered with Azure AD.
Throws
AuthorizationError if the authorization process does not complete successfully.
Throws
ParameterError if invalid function parameter values are detected.