This documentation is archived and is not being maintained.

IAccessControlService::ProvisionServiceIdentity Method (String, String, array<IdentityDescriptor>)

Provisions a service identity with the given name and password.

Adds the service identity to the given groups.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

ServiceIdentity^ ProvisionServiceIdentity(
	String^ serviceIdentityName, 
	String^ password, 
	array<IdentityDescriptor^>^ addToGroups
)

Parameters

serviceIdentityName
Type: System::String

The service identity name.

password
Type: System::String

The service identity password.

addToGroups
Type: array<Microsoft.TeamFoundation.Framework.Client::IdentityDescriptor>

The groups to add the provisioned service identity to.

Return Value

Type: Microsoft.TeamFoundation.Framework.Client::ServiceIdentity
The provisioned service identity.

Show: