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 : hUSw3FM0DJCuzWRAnEM6JO
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'

Like (0) ShareShare
ReportReport
Posted on 9 Jan 2024 16:05:57 by 5,836 Moderator

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 Moderator on 10 Jan 2024 at 13:21:16
    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 Moderator on 10 Jan 2024 at 13:13:04
    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 Moderator on 10 Jan 2024 at 13:11:52
    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 Moderator on 10 Jan 2024 at 13:08:49
    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 Moderator on 10 Jan 2024 at 11:37:15
    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 Moderator on 10 Jan 2024 at 05:44:38
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics

Loading complete