Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPWeb.GetUserEffectivePermissions method

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

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

public override SPBasePermissions GetUserEffectivePermissions(
	string userName
)

Parameters

userName
Type: System.String

The user associated with the returned permissions.

Return value

Type: Microsoft.SharePoint.SPBasePermissions
The permissions of the given user.

ExceptionCondition
UnauthorizedAccessException

The user does not have permission to enumerate permissions.

Show:
© 2015 Microsoft