Share via


TeamFoundationVersionControlService.QueryEffectiveItemPermissions Method

Computes the permissions for a user against a particular item. Applies the allow and deny lists, inheritance, and group membership rules to produce a simple list of permissions the user has.

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

Syntax

'Declaration
Public Function QueryEffectiveItemPermissions ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    item As String, _
    identityName As String _
) As List(Of String)
public List<string> QueryEffectiveItemPermissions(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    string item,
    string identityName
)
public:
List<String^>^ QueryEffectiveItemPermissions(
    TeamFoundationRequestContext^ requestContext, 
    String^ workspaceName, 
    String^ workspaceOwner, 
    String^ item, 
    String^ identityName
)
member QueryEffectiveItemPermissions : 
        requestContext:TeamFoundationRequestContext * 
        workspaceName:string * 
        workspaceOwner:string * 
        item:string * 
        identityName:string -> List<string> 
public function QueryEffectiveItemPermissions(
    requestContext : TeamFoundationRequestContext, 
    workspaceName : String, 
    workspaceOwner : String, 
    item : String, 
    identityName : String
) : List<String>

Parameters

  • workspaceName
    Type: System.String

    Name of workspace (only used if item is a local path).

  • workspaceOwner
    Type: System.String

    Owner of workspace (only used if item is a local path).

  • item
    Type: System.String

    Server or local path of item to check.

  • identityName
    Type: System.String

    Name of user to test permissions of.

Return Value

Type: System.Collections.Generic.List<String>
Array of permission names.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace