AccessControlWebService.ProvisionServiceIdentity Method
Provision a service identity with the given info. Optionally adds the identity to given groups.
Namespace: Microsoft.TeamFoundation.Server.Core.WebServices
Assembly: Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function ProvisionServiceIdentity ( _
identityInfo As ServiceIdentityInfo, _
addToGroups As IdentityDescriptor() _
) As ServiceIdentity2012
[WebMethodAttribute]
public ServiceIdentity2012 ProvisionServiceIdentity(
ServiceIdentityInfo identityInfo,
IdentityDescriptor[] addToGroups
)
[WebMethodAttribute]
public:
ServiceIdentity2012^ ProvisionServiceIdentity(
ServiceIdentityInfo^ identityInfo,
array<IdentityDescriptor^>^ addToGroups
)
[<WebMethodAttribute>]
member ProvisionServiceIdentity :
identityInfo:ServiceIdentityInfo *
addToGroups:IdentityDescriptor[] -> ServiceIdentity2012
public function ProvisionServiceIdentity(
identityInfo : ServiceIdentityInfo,
addToGroups : IdentityDescriptor[]
) : ServiceIdentity2012
Parameters
identityInfo
Type: Microsoft.TeamFoundation.Framework.Server.ServiceIdentityInfoThe info of the identity to provision. If not specified, the default service identity will be provisioned
addToGroups
Type: array<Microsoft.VisualStudio.Services.Identity.IdentityDescriptor[]Add the identity to the given groups. If none are specified, the identity is added to the Service Accounts group
Return Value
Type: Microsoft.TeamFoundation.Server.Core.WebServices.ServiceIdentity2012
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.