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)
Syntax
'Declaration
Public Function GetEffectiveGlobalPermissions ( _
userName As String _
) As String()
'Usage
Dim instance As VersionControlServer
Dim userName As String
Dim returnValue As String()
returnValue = instance.GetEffectiveGlobalPermissions(userName)
public string[] GetEffectiveGlobalPermissions(
string userName
)
public:
array<String^>^ GetEffectiveGlobalPermissions(
String^ userName
)
public function GetEffectiveGlobalPermissions(
userName : String
) : String[]
Parameters
userName
Type: System.StringName of user for whom you want to check permissions.
Return Value
Type: array<System.String[]
Returns an array of names of the permissions names that are granted to the user, either explicitly or effectively.
Remarks
Applies the allow and deny lists, inheritance, and group membership rules to create a simple list of permissions for the user.
.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.