Throw new InvalidOperationException("User not found or could not get an exact match based on email") If (!identities.Any() || identities.Count > 1) Var identities = await client.ReadIdentitiesAsync(.IdentitySearchFilter.MailAddress, email) Var project = await this.GetProjectAsync(projectId) Public async Task GrantProjectAccessAsync(string projectId, string email) Return projectClient.GetProject(projectId) You can also refer the related code under the user voice in comments part (an example for adding members to default team): public Task GetProjectAsync(string projectId) Once the REST API is available, you can use REST API programmatically to add member to a team. Option 1: REST API (not available for now)įor now, there is no such REST API to add members to a team project.īut there has an user voice add rest api for adding members to a team which suggest to add this feature for REST API, you can vote and follow up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |