Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: does user have edit/create permissions on a list

It's been a while since I have worked with Mask values, so you will need to do some research on how to compare those...

The approach is to:
  1. get the list of groups/people that have permissions to the list. This returns the Role name and permission mask (see example of output here
  2. get the user permission (using GetRolesAndPermissionsForCurrentUser... The documentation has a good example on getting the user's permissions)
Loop through the permissions for the List and check to see if user has that permission to it.

Sorry I don't have more specifics... I have done some stuff with permissions, but at the site level - similar to the example on the Documentation page for GetRolesAndPermissionsForCurrentUser.

Paul.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>