Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Governance and Administ...
Answered

Set-AdminPowerAppOwner returns error Object id 'xxxxx' cannot be the owner of app because their principal type is 'NotSpecified', and it must be 'User'

(0) ShareShare
ReportReport
Posted on by 5,836 Super User 2025 Season 1

Error=; Message=Object id 'xxxxx' cannot be the owner of app because their principal type is
'NotSpecified', and it must be 'User'

 

Not having a clue what this really means, I went in and added the person to the app as a user.  This was 2 hours ago and I am still getting this error.

Categories:
  • Verified answer
    JR-BejeweledOne Profile Picture
    5,836 Super User 2025 Season 1 on at
    Re: Set-AdminPowerAppOwner returns error Object id 'xxxxx' cannot be the owner of app because their principal type is 'NotSpecified', and it must be 'User'

    I have figured this out.   It's the Azure AD Object ID that it's looking for.  Your answer made me start looking somewhere else.  Thank you for the help.

     

  • JR-BejeweledOne Profile Picture
    5,836 Super User 2025 Season 1 on at
    Re: Set-AdminPowerAppOwner returns error Object id 'xxxxx' cannot be the owner of app because their principal type is 'NotSpecified', and it must be 'User'

    And where do I get this?  Is this an Azure AD value?  It's not an Active Directory value.

  • JR-BejeweledOne Profile Picture
    5,836 Super User 2025 Season 1 on at
    Re: Set-AdminPowerAppOwner returns error Object id 'xxxxx' cannot be the owner of app because their principal type is 'NotSpecified', and it must be 'User'

    I will try that.  This is an example of the very poor documentation.  I had to guess which value to use.  I searched for documentation for this command and there wasn't any documentation I could find that specified which value to use for this.

  • velegandla Profile Picture
    202 Super User 2025 Season 1 on at
    Re: Set-AdminPowerAppOwner returns error Object id 'xxxxx' cannot be the owner of app because their principal type is 'NotSpecified', and it must be 'User'

    @JR-BejeweledOne 

     

    From the role assignment, try to use the PrincipalObjectID in the as parameter to the script below

    Set-AdminPowerAppOwner -AppName 'GUID' -AppOwner @PrincipalObjectID -EnvironmentName 'GUID'

     

    ====================================================

    If this response helped you in any way, please give kudos by clicking the 'Thumbs Up'/'Like' button and/or marking it as an 'Accepted Solution'. This helps others by providing a quick way to identify likely solutions to their issues.
     

    https://www.linkedin.com/in/devendravelegandla/ 

  • JR-BejeweledOne Profile Picture
    5,836 Super User 2025 Season 1 on at
    Re: Set-AdminPowerAppOwner returns error Object id 'xxxxx' cannot be the owner of app because their principal type is 'NotSpecified', and it must be 'User'

    Same issue and I don't understand why.

     

    PowerAppsAssignOwner.png

     

    PowerAppsAssignOwner1.png

  • velegandla Profile Picture
    202 Super User 2025 Season 1 on at
    Re: Set-AdminPowerAppOwner returns error Object id 'xxxxx' cannot be the owner of app because their principal type is 'NotSpecified', and it must be 'User'

    @JR-BejeweledOne 

    Please makesure the GUID is correct for the user. 

     

    I tested script below and it should work as expected.

     

    # Import the module
    Import-Module Microsoft.PowerApps.Administration.PowerShell
    
    #Get-AdminPowerApp
    
    Set-AdminPowerAppOwner -AppName 'GUID' -AppOwner 'GUID' -EnvironmentName 'GUID'

     

    ====================================================

    If this response helped you in any way, please give kudos by clicking the 'Thumbs Up'/'Like' button and/or marking it as an 'Accepted Solution'. This helps others by providing a quick way to identify likely solutions to their issues.
     

    https://www.linkedin.com/in/devendravelegandla/ 

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics