Hi All,
Apologies if this is in the wrong forum!
I am in a confusing situation and would appreciate an explanation of this process, as my understanding is obviously lacking.
I want to create a list of 100 Dataverse users that are registered in Entra. My goal is to roll out a Power App that will be used by these users.
The difficulty I am having is that while I can create my users through Logic Apps, it doesn't populate the azureactivedirectoryobjectid
column. I assume this occurs 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 I am facing is that when I create a user through the Logic App, that user is disabled and lacks an azureactivedirectoryobjectid
. Subsequently, when the actual user logs into the environment (they have licenses and security roles from within a team), the user gets 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.
Here 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