1
votes

I'm creating a team from a office 365 group using the c# sdk as specified in the documentation.

GraphServiceClient graphClient = new GraphServiceClient( authProvider );

var team = new Team
{
    MemberSettings = new TeamMemberSettings
    {
        AllowCreateUpdateChannels = true
    },
    MessagingSettings = new TeamMessagingSettings
    {
        AllowUserEditMessages = true,
        AllowUserDeleteMessages = true
    },
    FunSettings = new TeamFunSettings
    {
        AllowGiphy = true,
        GiphyContentRating = GiphyRatingType.Strict
    }
};

await graphClient.Groups["{id}"].Team
    .Request()
    .PutAsync(team);

This works to create the team and also adds the members and owners of the group automatically to the team, but it doesn't add guests from the group to the team.

Is this a known issue and is there a workaround for this problem?

1
Adding guest user is a two step process. First step is to send invitation for which you can use Invitation Graph API. And once user is invited to your AD you can add him/her using Add Members Graph AP. - Trinetra-MSFT
@Trinetra-MSFT Why not add this as an answer? - Darrel Miller

1 Answers

0
votes

Adding guest user is a two step process. First step is to send invitation for which you can use Invitation Graph API. And once user is invited to your AD you can add him/her using Add Members Graph API.