How to handle the Need admin approval popup when using Microsoft Teams Scope Activity?
Issue Description: Need Admin Approval popup as shown below when using Microsoft Teams Scope Activity
Resolution: UiPathStudioO365App application requires one or more permissions which only Global Admin can consent for. There are some permissions for which standard users can request admin review and consent.
If the application needs high-level permission, Azure admins can enable users to request admin consent to apps they are unable to consent to.
From the Admin portal, go to Admin Centers > Azure AD > Users > User Settings then make sure "Users can request admin consent to apps they are unable to consent to" is enabled.
- If this option is set to yes, then users request admin consent to any app that requires access to data they do not have the permission to grant.
- If this option is set to no, then users must contact their admin to request to consent in order to use the apps they need.
Once enabled,
Instead of enabling a user to consent to app access, Microsoft has provided more granular permission through an admin request, allowing Azure admins to identify which users, groups, and/or roles are to receive these consent requests and reminders, as well as set expiration limits on requests.
As this requires identifying the approval authorities within the organization, most will require a governance review that may take up to several weeks.
If the goal is to deploy the process to an unattended robot using Application permissions, guidance on limiting application permissions to specific Exchange Online mailboxes can be found here, Limiting Applications Permissions To Specific Exchange Online Mailboxes.
Note: The above screenshots may vary depending upon the version being used.