web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

How to make an application user in Dataverse a licensed user?

(0) ShareShare
ReportReport
Posted on by 5

Hi,

We are using the Power Automate Web API by connecting to "https://*****.crm.dynamics.com/" ( where ***** is the environment URL or instance of CDS) using the token generated using MSAL ( by using the client ID of our custom registered app). We are performing a POST, DELETE and PATCH request but are receiving an Error 400 - Bad Request when trying to activate the power automate flow on using PATCH( i.e. when statecode = 1). The flow gets created just fine but cannot turn it on. We assume this is because the service principal or our application user is not a licensed user in Dataverse/CDS.

Please let me know if its possible to add an application as a licensed user for Dataverse? i.e. to assign a license to an object ID/service principal? Main goal is to be able to turn on the flow in CDS with the service principal id of our custom API.  

Here are some more details:

1. An app registration for our custom API exists in Azure 

2. Our custom API is present under ' Application users' in the Dataverse

3. Security roles have been assigned ( also assigned system administrator role)

4. Added this service principal to a security group and added in 'Power Apps and Flow' enterprise application group

5. Assigned the following licenses to the security group mentioned in step 4. 

 pastedimage1623427900386v1.png

Any help is greatly appreciated. Thank you in advance.

Regards

Sls

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 125

#2
11manish Profile Picture

11manish 89 Super User 2026 Season 2

#3
ParthPatel249 Profile Picture

ParthPatel249 87

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans