public static async Task <bool> TryAddUserToGroup() { //Create a group string createdGroup = await GroupSnippets.CreateGroupAsync(STORY_DATA_IDENTIFIER); //Create a user string createdUser = await UserSnippets.CreateUserAsync(STORY_DATA_IDENTIFIER); //Add the user to the group return(await GroupSnippets.AddUserToGroup(createdUser, createdGroup)); }
// This story requires an admin work account. public static async Task <bool> TryCreateUserAsync() { string createdUser = await UserSnippets.CreateUserAsync(STORY_DATA_IDENTIFIER); return(createdUser != null); }