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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating Dataverse Use...
Power Automate
Unanswered

Creating Dataverse Users - Azure Logic Apps/Power Automate

(0) ShareShare
ReportReport
Posted on by
Hi All, 
 
Apologies if this is in the wrong forum!
 
Im in a confusing situation. 
 
I was wondering if someone can explain this process, as my understanding is obviously lacking. 
 
I want to create a list of 100 dataverse users that are registered in Entra. 
 
I am trying to roll out a Power App that will be used by said users. 
 
The difficulty I am having is, whilst I can create my users through logic apps, it doesn't stamp the azureactivedirectoryobjectid column. I assume this is because it is system generated (sync with entra). 
 
My question is: How do I create users, that are linked to Entra BEFORE they have logged into my environment?
 
I want the app ready to go for them. 
 
The issue this is causing is, whilst I can create a user through the logic app, that user is disabled and with no azureactivedirectoryobjectid.
What happens then is, the actual user logs into the environment (They have licences and security roles from within a team) and the user is duplicated. 
 
I have created Account records with ownership pointing to the original (disabled) user, which results in the ACTUAL user not being an owner of any record. 
 
This is what I am attempting: 
 
{
  "type": "Http",
  "inputs": {
    "uri": "@{parameters('TargetDataverseEnvironment')}api/data/v9.0/systemusers",
    "method": "POST",
    "headers": {
      "Authorization": "Bearer @{body('Get_DV_Token')?['access_token']}",
      "Content-Type": "application/json",
      "Prefer": "return=representation"
    },
    "body": {
      "azureactivedirectoryobjectid": "@items('For_Each_User')?['azureId']",
      "firstname": "@item()?['firstname']",
      "lastname": "@item()?['lastname']",
      "bau_advisercuroid": "@item()?['bau_advisercuroid']",
      "bau_adviser": "@item()?['bau_adviser']",
      "internalemailaddress": "@item()?['internalemailaddress']",
      "businessunitid@odata.bind": "/businessunits(@{parameters('TargetDataverseBusinessUnit')})"
    }
  },
  "runtimeConfiguration": {
    "contentTransfer": {
      "transferMode": "Chunked"
    }
  }
}

Thanks, 
 
Ryan
Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard