Unable to create MS Teams from Office 365 group

simonthomas
Tera Contributor

I am attempting to use Flow Designer and the Create Team action to create a new MS Team from an Office 365 group. The flow is failing and returning the error message "User is not an owner to perform migration of this Group to Team". 

 

I can successfully create a new Team by calling the same API from Postman.

 

Response body:

{
"error": {
"code":"Forbidden",
"message":"User is not an owner to perform migration of this Group to Team",
"innerError": {
"code":"AccessDenied",
"message":"User is not an owner to perform migration of this Group to Team",
"details":[],
"date":"2024-07-15T15:14:19"
}
}
}

 

Error message:

{
    "Step Status": {
        "code": 1,
        "message": "Error:  Access Denied, you are not the owner of the group you are trying to access. (Process Automation.ab728a5d53d621109eebddeeff7b12c2; line 13)"
    }
}

 

In summary:

- I have no issues generating an Office 365 group via ServiceNow

- I can use that Office 365 group to generate a new Team via Postman

- I can't use that Office 365 group to generate a new Team via ServiceNow

7 REPLIES 7

AnirudhKumar
Mega Sage
Mega Sage

Hey Simon,

Is the flow executing as System user?

As you say it works with Postman, where I assume you would have used admin creds, your flow probably runs as User who initiates the session.

Try going to your Flow properties and changing the Run as field to System User

I've tested it as System User and as User who initiates the session. Both returned the same results.

Zmud1
Tera Contributor

@simonthomas did you find solution to this? 

 

 

Not yet. I'm planning to raise a ticket with Microsoft to have them review the configuration from that side.