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