SharePoint REST API - Set Group Owner for another

Anonymous
2025-06-19T01:30:23+00:00

Hi Team,

I want to assign a group to be the "Group Owner" of another group by Power Automate Cloud flow. Could you give me suggestion?

I have created a flow to create new subsite and new group with new users inside in SharePoint.

Everything goes well except group owner.

Here is screenshot where it can be found in SharePoint Permission setting.

Here are what I can find online. I follow steps to update my cloud flow, however, it doesn't update the group owner as expected even the cloud flow runs successfully.

here are links:

Set a SharePoint Group owner with Power Automate - ESPC Conference, 2025

Can't add a Owner to a SharePoint group · Issue #957 · pnp/pnpjs

here are screenshot from cloud flow :

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Anonymous
    2025-06-19T02:47:09+00:00

    Hi Spencer YH Cai,

    Welcome to Microsoft Community. Thank you for reaching out.

    To better assistance, could you please provide details below:

    • Is the target group a Microsoft 365 group or a classic SharePoint group? Graph API only supports Microsoft 365 groups.
    • Is the groupId valid and resolvable in Microsoft Graph?
    • Can you confirm the group exists and the ID is correct?
    • Is the userPrincipalName resolvable in Graph?
    • Does the user exist and have permissions to be assigned as owner?
    • Are you trying to set the owner as a user or another group? Graph API typically supports assigning ownership to users only.
    • Is the bearer token scoped correctly?
    • Does the token include Group.ReadWrite.All or Directory.ReadWrite.All permissions?
    • What type of authentication is used (for example: app-only token)?
    • Are you getting any error responses from the PATCH call? → If yes, what is the status code and error message?
    • What response are you receiving from the Update Group Owner step? Is it a success code or an error?
    • Have you tried using PnP PowerShell to update the group owner? If so, what was the result?

    Your detailed response will help us diagnose and resolve the issue more efficiently.  

    Thank you for your cooperation.  

    Best regards,  

    Alex - MSFT | Microsoft Community Support Specialist

    0 comments No comments
  2. Anonymous
    2025-06-19T03:48:26+00:00

    Hi Alex,

    Thank you for your response.

    • Is the target group a Microsoft 365 group or a classic SharePoint group? Graph API only supports Microsoft 365 groups.

    I think it is a classic SharePoint group.

    I create new group by automate flow with action " Send an HTTP Request to SharePoint" and it assigns the connection reference account as group owner.

    It is possible to assign group owner when create a new group by SharePoint REST API with automate flow?

    • Is the groupId valid and resolvable in Microsoft Graph?
    • Is the userPrincipalName resolvable in Graph? don't know about this one. The account I am using, is the Admin in SharePoint only.
    • Are you trying to set the owner as a user or another group? Graph API typically supports assigning ownership to users only. No, I don't because the requirement is to set a group as a group owner.
    • Can you confirm the group exists and the ID is correct?

    Please check screenshot below for group id in SharePoint:

    • Does the user exist and have permissions to be assigned as owner? I can manually assign a group as group owner. So i think that is yes.
    • Is the bearer token scoped correctly?
    • Does the token include Group.ReadWrite.All or Directory.ReadWrite.All permissions?
    • What type of authentication is used (for example: app-only token)?
    • Are you getting any error responses from the PATCH call? → If yes, what is the status code and error message? Questions about bearer token : I don't have bearer token, seem it doesn't mention from the links I found, but they mention about the FormDigestValue. And no I don't try Patch.. only Post and Get
    • What response are you receiving from the Update Group Owner step?
    • Have you tried using PnP PowerShell to update the group owner? If so, what was the result? No. The PowerShell version requires to be 7.2 above.
    0 comments No comments
  3. Anonymous
    2025-06-23T09:22:09+00:00

    Hi Spencer YH Cai,

    Thank you for your detailed response. Based on the information you provided, I can confirm that your SharePoint flow appears to be set up correctly.

    However, due to limited resources, I’m currently unable to test the flow directly in Power Automate. To ensure you receive the most accurate and professional support, I recommend posting your question in the Microsoft Power Platform Community Forum Thread. This forum is dedicated specifically to Power Automate and is actively monitored by experts and community members who can offer more targeted assistance.

    The reason I’m suggesting this is that the Microsoft Answers forum has limited coverage and expertise in Power Automate topics. By posting in the Power Platform Community, you’ll have access to a broader and more knowledgeable audience, including other users who may benefit from or contribute to your discussion.

    Apologies for redirecting you, but this will help ensure you get quicker and more accurate support.

    Thank you again for your understanding and cooperation.

    Best regards,
    Alex - MSFT | Microsoft Community Support Specialist

    0 comments No comments