TeamFoundationIdentityService.CreateUser Method (TeamFoundationRequestContext, String, String, String)

Create a Team Foundation identity (user) with domain\account alias. Users have global scope; they are not scoped to any project. Currently the only usage 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.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

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

Parameters

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.IdentityDescriptor
Returns IdentityDescriptor.

Implements

ITeamFoundationIdentityService.CreateUser(TeamFoundationRequestContext, String, String, String)

.NET Framework Security

See Also

Reference

TeamFoundationIdentityService Class

CreateUser Overload

Microsoft.TeamFoundation.Framework.Server Namespace