Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Online Management API: Security

(0) ShareShare
ReportReport
Posted on by 20

Hi,

 

When you want to the use the PowerShell online management API module you need to be Global Admin or Service Admin in Office 365. I currently do not have these roles but I'm able to manage environments through the admin portal (https://admin.powerplatform.microsoft.com/)

 

Since I'm able to manage these through the portal I thought I would be able to use the powershell module to automatically manage them but this is not the case since I get a Forbidden every time.

 

Why does the module require different roles than the admin portal?

  • Verified answer
    v-yutliu-msft Profile Picture
    on at
    Re: Online Management API: Security

    Hi @Menik1 ,

    Could you tell me what is your role?

    In PowerShell, you could do many things that you can not do in admin center.

    Here's a doc about all the functions about ApiManagement for your reference:

    https://docs.microsoft.com/en-us/powershell/module/azurerm.apimanagement/?view=azurermps-6.13.0

    Some of them are not supported in admin center.

    So the role's requirements may be higher.

    While in admin center, not only just global admin and service could manage environments.

    There are many kinds of office365 roles, different roles have different permission of admin center.

    So the roles' requirements are not the same as in powershell.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 87 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

Overall leaderboard