Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provisions a service identity with the given info. 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
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context 
- identityInfo 
 Type: Microsoft.TeamFoundation.Framework.Server.ServiceIdentityInfo- The service identity info of the identity to provision 
- addToGroups 
 Type: array<Microsoft.VisualStudio.Services.Identity.IdentityDescriptor[]- The groups to add the provisioned identity to 
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.ServiceIdentity
The service identity
.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.