cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Menik1
Regular Visitor

Online Management API: Security

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?

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

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.

 
Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

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.

 
Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,287)