Created
April 6, 2022 05:58
-
-
Save MahdiKarimipour/b9822ea112c76eaa3af69599b5dbbdea to your computer and use it in GitHub Desktop.
Invite User to Azure DevOps Organisation: Request Payload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = new AzureDevOpsInviteUserToOrganisationRequestDto[] | |
{ | |
new AzureDevOpsInviteUserToOrganisationRequestDto() | |
{ | |
op = 0, | |
path = "", | |
from = "", | |
value = new AzureDevOpsInviteUserToOrganisationRequestDto.Value() | |
{ | |
accessLevel = new AzureDevOpsInviteUserToOrganisationRequestDto.Accesslevel() | |
{ | |
licensingSource = 1, | |
accountLicenseType = 2, | |
msdnLicenseType = 0, | |
licenseDisplayName = "Basic", | |
status = 0, | |
assignmentSource = 1 | |
}, | |
projectEntitlements = new AzureDevOpsInviteUserToOrganisationRequestDto.Projectentitlement[] | |
{ | |
new AzureDevOpsInviteUserToOrganisationRequestDto.Projectentitlement(){ | |
group = new AzureDevOpsInviteUserToOrganisationRequestDto.Group() | |
{ | |
groupType = 2, | |
}, | |
projectRef = new AzureDevOpsInviteUserToOrganisationRequestDto.Projectref() | |
{ | |
id = projectId.ToString() | |
} | |
} | |
}, | |
user = new AzureDevOpsInviteUserToOrganisationRequestDto.User() | |
{ | |
principalName = "Insert User Email", | |
subjectKind = "user" | |
} | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment