Additional features, settings, or issues not covered by specific Microsoft Teams categories
That’s right you need to assign the user to an existing team groupid.
You can create a new team or just use an existing one.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The examples for the PS cmdlet show a GUID:
Add-TeamUser -GroupId 31f1ff6c-d48c-4f8a-b2e1-abca7fd399df -User dmx@example.com
Do I generate my own random GUID (string), or assign a specific GUID? I am trying to automate the creation of Teams and Channels etc. using PowerShell. I know you can also do this in Flow or Graph, but I am much less well versed in those methods.
Can't I do something like this? "Add-TeamUser -GroupId 123456-User dmx@example.com"
Additional features, settings, or issues not covered by specific Microsoft Teams categories
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.
That’s right you need to assign the user to an existing team groupid.
You can create a new team or just use an existing one.
After looking through the link you provided I was able to get an answer. I have to create a new team and then lookup the object guid in order to assign channels and users. It doesn't look like you can assign your own value.
I see you have marked this response as not resolving your issue, can you advise if you need further assistance?
Hi my name is Ross, I'm an independent advisor. I'd be happy to help with your issue.
You need to get the specific GUID for the group you are trying to assign.
See this article for the commands to look this up,
https://docs.microsoft.com/en-us/powershell/mod...
Regards,
Ross