Table of contents
TOC
Collapse the table of content
Expand the table of content

SecurityExtensions.RemovePermissionLevelFromUser Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Removes a permission level from a user

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void RemovePermissionLevelFromUser(this SecurableObject securableObject, String userLoginName, RoleType permissionLevel, Boolean removeAllPermissionLevels = False)

Parameters

securableObject

  Type: Microsoft.SharePoint.Client.SecurableObject
  Web/List/Item to operate against

userLoginName

  Type: System.String
  Loginname of user

permissionLevel

  Type: Microsoft.SharePoint.Client.RoleType
  Permission level to remove. If null all permission levels are removed

(optional) removeAllPermissionLevels

  Type: System.Boolean
  Set to true to remove all permission level.

Return Value

Type: void

See also

© 2018 Microsoft