Hi Team,
We are consuming Common Data Service using Azure AD from C# Console Application to insert data in Power Apps Entity
1. We are trying to access Power Apps entities from C# Console App through Common Data Service.
2. We have registered the app on Azure AD.
3. We have the ClientID, TenantId, but when we try to insert the data into Power Apps entity using Common Data Service, we get the following error :
AADSTS65001: The user or administrator has not consented to use the application with ID '{client-id}' named '{application created in Azure AD}'. Send an interactive authorization request for this user and resource.
We have user consent in Azure AD app but when we try to access token, we still get the above error.
I have attached word document to explain what I am doing and what may I be missing.
Please help in addressing this issue.
Thanks
Umesh Kumar
Hi @UmeshKumar,
Can you kindly confirm that you've performed the steps in the following two links? The 1st one to register CDS in Azure AD and the 2nd link to create the application user and assign a CDS security role. I would assign the System Administrator role to ensure it's not a privilege issue.
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/walkthrough-register-app-azure-active-directory
https://docs.microsoft.com/en-us/power-platform/admin/create-users-assign-online-security-roles#create-an-application-user
Hope this helps..
mmbr1606
22
Super User 2025 Season 1
stampcoin
19
Michael E. Gernaey
17
Super User 2025 Season 1