sharepoint online permissions
3 TopicsWhile creating SharePoint group using Rest api, getting Microsoft.SharePoint.SPException with Error
Actual Error: body : "{"error":{"code":"-2146232060, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"Exception from HRESULT: 0x80131904"}}}" statusCode : 500 statusText : "Internal Server Error". Scenario: Actually In SharePoint online, By Rest API, My SharePoint Hosted app will create new list item and following that, create two groups, group 1 created successfully, while creating group 2 getting this above mentioned general error: 500 Internal server error. Sample Code: var metadata = JSON.stringify({ "__metadata": { "type": "SP.Group" }, "Title": "Group2 Members", "Description": "Group2 Members", "OnlyAllowMembersViewMembership": false, "AllowMembersEditMembership": true }); var url = CG_AppWebUrl + "/_api/SP.AppContextSite(@target)" + "/web/SiteGroups?" + "@target='" + CG_HostWebUrl + "'" executor.executeAsync({ url: url, method: "POST", async: false, body: metadata, headers: { "content-type": "application/json; odata=verbose", "accept": "application/json; odata=verbose" }, contentType: 'application/json', success: function (data) { callback("Created"); }, error: function (data) { callback("Error"); } App has Full Control permission in Site collection, Web and List. Executing User has Site collection admin access. Note: This issue is not coming continuously, Randomly it is coming for different users with different roles. Early I thought error occurred due to permission issue for different users, but now site collection admin user also getting this issue. And also I try to reproduce the issue by sending long group name, empty string in group name, same group name which gave for group 1, but the issue is not reproducing. Anyone please give some alternate idea to reproduce the 500 internal serve error in SharePoint Hosted app. Thanks in advance.1.9KViews0likes0CommentsSharePoint Online Permission Assistance
Hi Guys I am working on Microsoft SharePoint Online. I have created a SharePoint solution that consists of a site collection, in which I have created a document library and under the document library I have setup multiple folders in which to store documents. Take note that at the site collection level I have assigned all users to the visitors group with standard read access. At the document library level , I have assigned all users to the visitors group with standard read access (I did not break inheritance at this level). I require assistance to assign permissions to specific folders under the document library, as I cannot seem to get this to work. However the permissions need to be different to the site and document library level (apply only to the folders) and when assigned must not affect or break the permissions on any other level. If anyone can guide me as to how I can set this up in my SharePoint solution, I would greatly appreciate your advice. If any further information is needed just ask and I will provide. Thanks Jarrod829Views0likes1CommentBroad Visitor access OR Use Audience Targeting ? Transparency vs Security
We've got a fairly large university site on SPM, currently 10% into a conversion off of SP2013. Determining a structure now... I've established about 15 hub sites (all communication sites), each having 3-9 dept sites (mix of Team and Comm sites) linked into that hub level menu. We utilize the Start page, as well as a Home page for the University...where there is a menu with links to each of the hub sites. We want to benefit from Audience Targeting, but are torn whether (A) to use a common global megamenu at the top level each hub, then set all the hubs Visitor permissions to 'Everyone except External Users'..which may over-saturate the Start page. It may also expose (perhaps) department level docs to outside divisions..which some see as undesirable. OR (B) The alternative is to remove the global hub menu; give users access to ONLY their depts sites and div hubs...and rely on audience targeting to bubble up documents to the start page. Removing the hub navigation, to me, takes away the desire to instill collaboration between areas of the university. Some though, want the security of only users seeing what you absolutely need to see. What works best out there ?664Views1like0Comments