Unable to create MS Teams from Office 365 group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 05:53 PM
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
- Labels:
-
flow designer
-
IntegrationHub

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2024 06:04 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2024 03:34 AM
I've tested it as System User and as User who initiates the session. Both returned the same results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2025 04:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2025 02:45 PM
Not yet. I'm planning to raise a ticket with Microsoft to have them review the configuration from that side.