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:
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.