Partilhar via


SecurityWebService.QueryPermissions Method

In all cases: This method will query the permissions for the token specified (and those beneath it if recursion is specified and this is a hierarchical namespace). It will return permission information on the identities that are supplied or all identities if null is supplied for the identities parameter. IAccessControlLists objects will only be returned for tokens that we have information on. Note that the order the access control entries are returned in within an access control list is non-deterministic. If includeExtendedInfo is false: All of the ExtendedInfo properties for the returned AccessControlEntry objects will be null. If includeExtendedInfo is true: All of the ExtendedInfo properties for the returned AccessControlEntry objects will contain references to valid ExtendedPermissionInformation objects. If the identities parameter is null, this function will return permission information for all identities that have explicit OR INHERITED permissions on them.

Namespace:  Microsoft.TeamFoundation.Server.Core.WebServices
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Function QueryPermissions ( _
    namespaceId As Guid, _
    token As String, _
    identities As List(Of IdentityDescriptor), _
    includeExtendedInfo As Boolean, _
    recurse As Boolean _
) As List(Of AccessControlListDetails)
[WebMethodAttribute]
public List<AccessControlListDetails> QueryPermissions(
    Guid namespaceId,
    string token,
    List<IdentityDescriptor> identities,
    bool includeExtendedInfo,
    bool recurse
)
[WebMethodAttribute]
public:
List<AccessControlListDetails^>^ QueryPermissions(
    Guid namespaceId, 
    String^ token, 
    List<IdentityDescriptor^>^ identities, 
    bool includeExtendedInfo, 
    bool recurse
)
[<WebMethodAttribute>]
member QueryPermissions : 
        namespaceId:Guid * 
        token:string * 
        identities:List<IdentityDescriptor> * 
        includeExtendedInfo:bool * 
        recurse:bool -> List<AccessControlListDetails> 
public function QueryPermissions(
    namespaceId : Guid, 
    token : String, 
    identities : List<IdentityDescriptor>, 
    includeExtendedInfo : boolean, 
    recurse : boolean
) : List<AccessControlListDetails>

Parameters

  • namespaceId
    Type: System.Guid

    The namespace to make these changes in.

  • token
    Type: System.String

    The token to query permissions for. If this value is null, permissions for all tokens will be returned.

  • includeExtendedInfo
    Type: System.Boolean

    Includes inherited and effective permission information by attaching ExtendedPermissionInformation objects to all of the IPermission objects if true. If this is false, all of the ExtendedInfo properties on the AccessControlEntry objects will be null.

  • recurse
    Type: System.Boolean

    If true and this funciton is being performed on a hierarchical namespace, it will return all ACLs for this resource and the ones below it.

Return Value

Type: System.Collections.Generic.List<AccessControlListDetails>
Detail for all of the permissions for all of the relevant identities that can be applied to this token.

.NET Framework Security

See Also

Reference

SecurityWebService Class

Microsoft.TeamFoundation.Server.Core.WebServices Namespace