Giter VIP home page Giter VIP logo

Comments (11)

andikrueger avatar andikrueger commented on August 19, 2024

Could you please share a screenshot of the assigned API permissions for your application and the assigned roles? Thanks.

from microsoft365dsc.

KarinaxRivera avatar KarinaxRivera commented on August 19, 2024

Could you please share a screenshot of the assigned API permissions for your application and the assigned roles? Thanks.

image
image
image

The app registration only has the Global Reader role and is a Power Platform admin management application.

from microsoft365dsc.

andikrueger avatar andikrueger commented on August 19, 2024

Please check if you did assign:

OrganizationSettings.Read or if you need write access as well:

OrganizationSettings.ReadWrite

I did not see this API permission within the screenshot.

from microsoft365dsc.

KarinaxRivera avatar KarinaxRivera commented on August 19, 2024

I do not see that permission listed in my Azure portal. I also checked which permissions the application would need using Get-M365DSCCompiledPermissionList and that API permission doesn't appear.

image

Could this be a problem with how my app registration was created?

from microsoft365dsc.

KarinaxRivera avatar KarinaxRivera commented on August 19, 2024

Please check if you did assign:

OrganizationSettings.Read or if you need write access as well:

OrganizationSettings.ReadWrite

I did not see this API permission within the screenshot.

Is this a permission that I need to assign via PowerShell and not GUI?

from microsoft365dsc.

andikrueger avatar andikrueger commented on August 19, 2024

You could add the permission by using Graph PowerShell or the EntraId Admin Center.

Using Graph PowerShell you need to add the scope parameter to Connect-MGGraph with one of the scopes above.

Within EntraID you could update your app registration in the section api permissions.

from microsoft365dsc.

ricmestre avatar ricmestre commented on August 19, 2024

@andikrueger PP workload app doesn't require any API permissions, it just needs to be added to Power Apps as a mgmt app by an admin.

"Service principal applications are treated within Power Platform similar to how normal users are with the Power Platform Administrator role assigned. Granular roles and permissions can't be assigned to limit their capabilities. The application doesn't get any special role assigned in Microsoft Entra ID, as this is how platform services treat requests made by service principals."

https://microsoft365dsc.com/user-guide/get-started/authentication-and-permissions/#power-apps-permissions

https://learn.microsoft.com/en-us/power-platform/admin/powershell-create-service-principal#registering-an-admin-management-application

from microsoft365dsc.

andikrueger avatar andikrueger commented on August 19, 2024

That is absolutely correct.

I was referring to the Exchange error message.

from microsoft365dsc.

ricmestre avatar ricmestre commented on August 19, 2024

Oh right, I didn't even see that resource there, O365 workload and specially O365OrgSettings is really a pain in the neck...

The log shows that it's failing on line 294 which corresponds for calling Get-DefaultTenantMyAnalyticsFeatureConfig, this requires either Global admin, EXO admin or Insights admin Entra roles as per https://learn.microsoft.com/en-us/powershell/module/exchange/get-defaulttenantmyanalyticsfeatureconfig?view=exchange-ps

In my case I've assigned Insights administrator since it's the most restrictive, please bear in mind that assigning any one of these Entra roles is required even if only reading is required.

from microsoft365dsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.