Share via

Add-TeamUser PowerShell cmdlet

Anonymous
2020-04-09T22:33:28+00:00

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"

Microsoft Teams | Microsoft Teams for business | Other

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

4 answers

Sort by: Most helpful
  1. Anonymous
    2020-04-09T23:24:06+00:00

    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.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2020-04-09T23:21:18+00:00

    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.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2020-04-09T22:59:47+00:00

    I see you have marked this response as not resolving your issue, can you advise if you need further assistance?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2020-04-09T22:47:13+00:00

    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

    Was this answer helpful?

    0 comments No comments