Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Permissions.asmx web service problem

$
0
0

Hi all,

I have a big issue about web service action with Permissions.asmx. I have a custom created role and group on my site and i would like to grant this group accces to list with permissions from this role. 

Unfortunately when I run  GetPermissionColection for another list where this group have acces based on this role (I have granted it manually) the returned Mask (201527329) is wrong because when i try to AddPermissions with this mask, new Permission level is created (Auto-generated Permission Level f03cb0fa-4ba9-45d1-9aed-1e42004ce891). I have no idea why? Maybe i do wrong calculation, or variable - Int32 is to short for permission mask? When I calculate it by hand, very big number appears which can't be stroed in int32.

Could you help me with that?

This is my custom role description (only checked fields are listed):

List Permissions
 - View Items, 
 - View Application Pages,
 - Open Items,
Site Permissions
 - Browse Directories,
 - View Pages,
 - Browse User Information,
 - Open.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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