What APIs permissions must be enabled for Client Credentials Flow authentication

Divanshu Johar 40 Reputation points
2025-11-05T12:52:55.6066667+00:00

We have an application 'Infosys Bot Migrator' that migrates RPA bots to Power Automate bots.

We have Dataverse app for authentication and storing the Power Automate Desktop flows into Azure. Currently, we are using Device code authentication flow, and we want to use Clients Credentials authentication flow.

Current APIs that are enabled as:

Dynamics CRM (1)

user_impersonation | Type: Delegated | Description: Access Common Data Service as organiz... | Admin consent required: No

**Microsoft Graph (2)
**Group.Read.All | Type: Delegated | Description: Read all groups | Admin consent required: Yes

User.Read | Type: Delegated | Description: Sign in and read user profile | Admin consent required: No

PowerApps Services (3)

Please help us on what all APIs with type, admin consent, etc. that must use for Client Credentials flow.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Answer accepted by question author
  1. Rukmini 11,505 Reputation points Microsoft External Staff Moderator
    2025-11-05T14:18:09.5166667+00:00

    Hello Divanshu Johar,

    To access Dynamics CRM using client credential flow, no need to grant Dynamics CRM API permission.

    • You need to create Application User that links to your Microsoft Entra ID application.
    • Create Dataverse application user using API or in Power Platform Admin Center

    Generate access token using scope https://<yourorg>.crm.dynamics.com/.default and using the access token you can call the Dataverse API.

    To read all the groups, you can grant Group.Read.All application type API permission and make sure to grant Admin consent:

    User's image

    Generate access token using scope https://graph.microsoft.com/.default and using the access token you can call the Microsoft Graph API.

    To access PowerApps Services, no need to grant PowerApps API permission.

    • You need to register the client application ID with Microsoft Power Platform to access the PowerApps.
    • Generate access token using scope https://api.bap.microsoft.com/.default
    • Refer this thread, by me for calling PowerApps API using client credential flow.

    Hope this helps!


    If this answers your query, do click Accept Answer and Yes, if you have any further queries do let us know.

    If you have any other questions, let me know in the “comments” and I would be happy to help you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.