Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

VersionControlServer.GetEffectivePermissions Method

Gets the permissions of a user for a particular Item.

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

public string[] GetEffectivePermissions(
	string userName,
	string item
)

Parameters

userName
Type: System.String

Name of user to check.

item
Type: System.String

The path to the Item to check (server or local path).

Return Value

Type: System.String[]
Array of permission names.

Applies the allow and deny lists, inheritance, and group membership rules to come up with a simple list of permissions the user has.

Show:
© 2015 Microsoft