Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans