In CRM Online, which runs on this "Power Platform", er, platform, how the heck do you manage roles to user/groups programmatically? (Permissions aren't the issue, I can do it via the Power Platform GUI or within CRM itself.)
Powershell is preferred but the `Microsoft.PowerApps.Administration.PowerShell` doesn't seem to support it. (And so far seems really badly written/incomplete)
I've tried using the PowerPlatform CLI, up to and including registering a service principal, (which is added to the CRM environment), but
>pac admin assign-user -env 9912fe79-valid-env-guid-abc123456789 --user "some.email@ourdomain.org" --role "System Administrator"
give the error
Message: Access token validation failure. Invalid audience.
(Even when using valid user credentials)
Am I missing something obvious? How do folks manage users when provisioning/migrating environments?
(Even when using valid user credentials)
Am I missing something obvious? How do folks manage users when provisioning/migrating environments?







