This documentation is archived and is not being maintained.

VersionControlServer.GetEffectiveGlobalPermissions Method

Global permissions are permissions that apply to an entire server that is running Team Foundation Server, rather than to one file or folder on that server. The global permissions govern different behaviors from item-level permissions. For instance, Checkin is an item-level permission and Administer Shelvets is a global permission. This method gets the global permissions for the specified user, taking into account both the explicitly set permissions and the permissions of any groups to which the user belongs.

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

public string[] GetEffectiveGlobalPermissions(
	string userName


Type: System.String

Name of user for whom you want to check permissions.

Return Value

Type: System.String[]
Returns an array of names of the permissions names that are granted to the user, either explicitly or effectively.

Applies the allow and deny lists, inheritance, and group membership rules to create a simple list of permissions for the user.