SPWeb.GetUserEffectivePermissions Method
Gets the effective permissions that the specified user has within the current application scope.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- userName
- Type: System.String
The user associated with the returned permissions.
| Exception | Condition |
|---|---|
| UnauthorizedAccessException |
The user does not have permission to enumerate permissions. |