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.
When I run this link in browser :
https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/authorize?client_id={client-id}&response_type=code&redirect_uri={redirect_uri}&scope={scope}&prompt={prompt}
I replace the tenant-id, client-id, redirect_uri, scope and prompt, but I get "Need admin approval" popup for my work email address. Is there any other solution apart from tenant admin giving approval.
I have attached word document to explain what I am doing and what may I be missing.
Please help in addressing this issue.
Thanks,
Ashish Dhar