Service user creation - used to create Microsoft 365 Groups / Teams

StephanG 811 Reputation points
2020-08-20T11:46:52.2+00:00

Hi everyone,

i have the task to create a user that can create M365 groups / Teams by a trigger coming from CRM. I know there might be better ways to do this - but i am not the developer.

It is an easy task if you do not have a naming convention in place, but we have. I cannot take the naming convention back - because i separate the user created teams from the official teams and sites that way.

So the service user should be able to create groups with custom naming.
But i want it least privilege - so adding it to a group that can override this setting (like global admin or user admin) - would be my last option.
Is there any way to scope "naming conventions" on a specific group?

Would be great if anyone knows a solution here (creating an enterprise app for this - will not be possible).

Best regards
Stephan

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,562 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. 2020-08-20T15:19:42.593+00:00

    The least permissive would be to add the service user to the Teams Service Administrator role.

    --
    Please let us know if this answer was helpful to you. If so, please remember to mark it as the answer so that others in the community with similar questions can more easily find a solution.