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 server that is running Team Foundation Server for the specified users or groups. The permissions are returned in string form for easier user display. It is not possible to parse these strings to find a user's global permissions as this depends on the user's membership to certain groups. You can use the GetEffectiveGlobalPermissions method to find the permissions that are granted to a user.
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
- Type: System.String
The user or group names that you want to get permissions for these items.
Pass null to match all users and groups who have permissions set for these items.
Return ValueType: Microsoft.TeamFoundation.VersionControl.Client.GlobalSecurity
Returns a GlobalSecurity object, containing a Boolean varable that indicates whether the current user has permission to set global permissions, and an array of AccessEntry objects. These objects will contain strings that indicate whether allow and deny permissions are set for different users.
- 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.