Delen via


ITeamFoundationIdentityService.CreateUser Method

Create a Team Foundation identity (user) with domain\account alias. Users have global scope, they are not scoped to any project. Currently the only use case for this function is to track an identity imported from another environment. Hence the identity is marked inactive. It is not desirable for it to remain active, because it could interfere with a real, active account by this name.

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

Syntax

'Declaration
Function CreateUser ( _
    requestContext As TeamFoundationRequestContext, _
    userDomain As String, _
    account As String, _
    description As String _
) As IdentityDescriptor
IdentityDescriptor CreateUser(
    TeamFoundationRequestContext requestContext,
    string userDomain,
    string account,
    string description
)
IdentityDescriptor^ CreateUser(
    TeamFoundationRequestContext^ requestContext, 
    String^ userDomain, 
    String^ account, 
    String^ description
)
abstract CreateUser : 
        requestContext:TeamFoundationRequestContext * 
        userDomain:string * 
        account:string * 
        description:string -> IdentityDescriptor
function CreateUser(
    requestContext : TeamFoundationRequestContext, 
    userDomain : String, 
    account : String, 
    description : String
) : IdentityDescriptor

Parameters

Return Value

Type: Microsoft.VisualStudio.Services.Identity.IdentityDescriptor
Returns IdentityDescriptor.

.NET Framework Security

See Also

Reference

ITeamFoundationIdentityService Interface

Microsoft.TeamFoundation.Server.Core Namespace