web
Youโ€™re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : 97WEGirRylrRF6/ptVqaZ3
Power Apps - Power Apps Governance and Administ...
Answered

Accidentally deleted System Administrator Security Role

Like (0) ShareShare
ReportReport
Posted on 7 Oct 2022 16:57:34 by 62

Hello everyone,

 

This topic is really important for me/our company so any help is highly appreciated!

 

I played around assigning different security roles to users of a model-driven app. Unfortunately I removed the system administrator role from myself. Now there is no System admin anymore in this environment and we can't access or edit some of our apps. Assigning a new sys admin is not possible because only sys admin can do this. I already contacted our IT specialist with Global Admin rights for our Microsoft tenant but even he can not add the sys admin role to this environment.

 

This is quite urgent because it is our production environment. I did not know that you can remove the sys admin role when it is the last one in this environment. Hopefully we can "rescue" this environment...

Is there a way for me/any person in our company to regain sys admin rights for this environment? 

 

Thank you so much for your help!!

Categories:
I have the same question (0)
  • CU07080733-3 Profile Picture
    on 28 Nov 2023 at 02:57:53
    Re: Accidentally deleted System Administrator Security Role

    You are my lifesaver, thanks!!!

  • Parashuram Profile Picture
    6 on 29 May 2023 at 09:33:30
    Re: Accidentally deleted System Administrator Security Role

    Select other user and assign sys admin role, and after that ask that user to assign sys admin role to you!

  • Verified answer
    Kuehnel98 Profile Picture
    62 on 08 Oct 2022 at 09:57:46
    Re: Accidentally deleted System Administrator Security Role

    @Anonymous You are my personal hero of this week ๐Ÿ™‚ I don't need to perform restore backup

    Although I figured it out my myself in the end, you gave me emotional support yesterday when the situation looked grim haha. Thank you so much!

    The problem in the end was that I just needed to refresh my user in the Power Platform admin center. Then the sys admin role was correctly assigned to me.

     

    So for everyone with the same issue: Go to the users list in the power platform admin center, pick the user for the sys admin security role, then click on "Refresh user" (see screenshot). Then the role should be correctly assigned or you can assign the role manually afterwards.

  • Community Power Platform Member Profile Picture
    on 07 Oct 2022 at 21:28:27
    Re: Accidentally deleted System Administrator Security Role

    ups, then the last resource would be a restore

    Back up and restore environments - Power Platform | Microsoft Learn

     

    have you tried it?

  • Kuehnel98 Profile Picture
    62 on 07 Oct 2022 at 20:00:52
    Re: Accidentally deleted System Administrator Security Role

    I also think that this is very strange... In the attached screenshot you can see that I have the AD role assigned.
    I am not sure whether we use PIm or not, I dont think so.

    Could it be the problem that I removed the sys admin role while sharing the model-driven app? So I removed the sys admin role in the Share a model-driven app window. I thought that it would only remove the sys admin role for this app (!) and not for the whole environment... I'm kind of frustrated at this stage.

    But thank you already so much for your time and help! Much appreciated


  • Verified answer
    Community Power Platform Member Profile Picture
    on 07 Oct 2022 at 19:49:12
    Re: Accidentally deleted System Administrator Security Role

    weird.... I just tested that in my testing tenant and is working...

    can you double check you have the AD role assigned? is your company using PIM?

  • Kuehnel98 Profile Picture
    62 on 07 Oct 2022 at 19:45:44
    Re: Accidentally deleted System Administrator Security Role

    Unfortunately this does not work either ๐Ÿ˜ž

  • Community Power Platform Member Profile Picture
    on 07 Oct 2022 at 19:15:04
    Re: Accidentally deleted System Administrator Security Role

    Can you try the following?

     

    1. Find the environment URL and open it
      cpadilla_1-1665170083791.png
    2. click on settings and then "advance settings"
      cpadilla_0-1665169948502.png
    3. then go to users, find yourself and try to add the admin role from there

     

    please let me know if that was possible

     

     

  • Kuehnel98 Profile Picture
    62 on 07 Oct 2022 at 18:24:58
    Re: Accidentally deleted System Administrator Security Role

    When I try to add the sys admin role i get this error:

    Failed to assign role 'System Administrator' : privilegeDenied (see Screenshot)

  • Community Power Platform Member Profile Picture
    on 07 Oct 2022 at 18:21:53
    Re: Accidentally deleted System Administrator Security Role

    The AD role is supposed to allow you to change anything in the environment..

     

    what happens if you go to the admin site https://admin.powerplatform.microsoft.com/environments open the environment settings, search for roles and then try to add yourself in the sys admin role?

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

Responsible AI policies

As AI tools become more common, weโ€™re introducing a Responsible AI Useโ€ฆ

MS.Ragavendar โ€“ Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our Septemberโ€ฆ

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 733 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 532 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Loading complete