Share via


TeamFoundationAccessControlService.ProvisionServiceIdentity Method

Provisions a service identity with the given information.

If identityInfo is null then provision will attempt to create the default service identity for the service host If addToGroups is null, the service identity will be provisioned with membership in the service accounts group

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

Syntax

'Declaration
Public Function ProvisionServiceIdentity ( _
    requestContext As TeamFoundationRequestContext, _
    identityInfo As ServiceIdentityInfo, _
    addToGroups As IdentityDescriptor() _
) As ServiceIdentity
public ServiceIdentity ProvisionServiceIdentity(
    TeamFoundationRequestContext requestContext,
    ServiceIdentityInfo identityInfo,
    IdentityDescriptor[] addToGroups
)
public:
ServiceIdentity^ ProvisionServiceIdentity(
    TeamFoundationRequestContext^ requestContext, 
    ServiceIdentityInfo^ identityInfo, 
    array<IdentityDescriptor^>^ addToGroups
)
member ProvisionServiceIdentity : 
        requestContext:TeamFoundationRequestContext * 
        identityInfo:ServiceIdentityInfo * 
        addToGroups:IdentityDescriptor[] -> ServiceIdentity
public function ProvisionServiceIdentity(
    requestContext : TeamFoundationRequestContext, 
    identityInfo : ServiceIdentityInfo, 
    addToGroups : IdentityDescriptor[]
) : ServiceIdentity

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.ServiceIdentity
The service identity

.NET Framework Security

See Also

Reference

TeamFoundationAccessControlService Class

Microsoft.TeamFoundation.Framework.Server Namespace