Web.GetUserEffectivePermissions method

Gets the effective permissions that the specified user has within the current application scope.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function GetUserEffectivePermissions ( _
    userName As String _
) As ClientResult(Of BasePermissions)
'Usage
Dim instance As Web
Dim userName As String
Dim returnValue As ClientResult(Of BasePermissions)

returnValue = instance.GetUserEffectivePermissions(userName)
public ClientResult<BasePermissions> GetUserEffectivePermissions(
    string userName
)

Parameters

  • userName
    Type: System.String

    The user associated with the returned permissions.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<BasePermissions>
The permissions of the given user.

Remarks

It must not be a null reference (Nothing in Visual Basic).

See also

Reference

Web class

Web members

Microsoft.SharePoint.Client namespace