Repository.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
<WebMethodAttribute> _
Public Function QueryEffectiveItemPermissions ( _
workspaceName As String, _
workspaceOwner As String, _
item As String, _
identityName As String _
) As List(Of String)
[WebMethodAttribute]
public List<string> QueryEffectiveItemPermissions(
string workspaceName,
string workspaceOwner,
string item,
string identityName
)
[WebMethodAttribute]
public:
List<String^>^ QueryEffectiveItemPermissions(
String^ workspaceName,
String^ workspaceOwner,
String^ item,
String^ identityName
)
[<WebMethodAttribute>]
member QueryEffectiveItemPermissions :
workspaceName:string *
workspaceOwner:string *
item:string *
identityName:string -> List<string>
public function QueryEffectiveItemPermissions(
workspaceName : String,
workspaceOwner : String,
item : String,
identityName : String
) : List<String>
Parameters
workspaceName
Type: System.StringName of workspace (only used if item is a local path).
workspaceOwner
Type: System.StringOwner of workspace (only used if item is a local path).
item
Type: System.StringServer or local path of item to check.
identityName
Type: System.StringName of user to test permissions of.
Return Value
Type: System.Collections.Generic.List<String>
Array of permission names.
.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.