简体   繁体   中英

Login as Service Principal Microsoft.PowerApps.Administration.PowerShell empty list

I am logging into the PowerApps Administration PowerShell cmdlets with the next command:

Add-PowerAppsAccount -Endpoint prod -TenantID $tenantId -ApplicationId $appId -ClientSecret $secret -Verbose

That service principal has already been added to the Power Platform Admin Default Environment with the System Administrator Security Role, and also, in the Azure Portal > App Registration > API Permissions, added the Dynamics CRM > user_impersonation permission, and still cannot retrieve the environments/apps/etc. Get-AdminPowerAppEnvironment gets nothing.

What do you think I am missing?

Thanks a lot

Is it added as an application user through the yoururl.crmx.dynamics.com/aspx?settingsonly=true or through the modern way from the admin settings?

It has to be specified as application user, just adding as user won't work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM