Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans