powerplatform-build-tools
powerplatform-build-tools copied to clipboard
Assign-user does not work with application user
Hi, When I want to execute assign-user, I get following error: Error: Insufficient privileges to complete the operation. The authentication is done with a service principal.
#Get the client secret from the machine $appId = "xxx" $secret = "xxx" $tenantId = "xxx"
$environmentId = "xxx" $maker = "[email protected]"
#Create connection to the Power Platform tenant pac auth create --applicationId $appId --clientSecret $secret --tenant $tenantId --environment $environmentId
pac admin assign-user --environment $environmentId --user $maker --role 'Environment Maker'
Is this a bug?
@snizar007 any update on this?
This is still present - when attempting to add back users after an environment reset for ALM, assign-user consistently fails with [ 'Error: Insufficient privileges to complete the operation.' ]
It appears that using the objectId for the user works