Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Created Sharepoint Site from web services does not inherit permissions, why?

Posted on 2010-08-24
Medium Priority
Last Modified: 2012-06-27
I'm in the middle of a Sharepoint integration application.

When I create a new site using the meetings.asmx CreateWorkspace web service,
my site is nicely created...

meetingsService.CreateWorkspace("SiteName", "SiteTemplateName", languagecode, timezoneinfo)

...however the permissions are NOT inherited from parent SiteCollection down to this new site.
If I create the site from Sharepoint UI,the Permissions ARE inherited.

I've seen there is this function ResetRoleInheritance() when using Sharepoint.dll, but thats no option
for me since my app could be on another computer then the Sharepoint Server.

Very greatful for any ideas!

meetingsService.CreateWorkspace("SiteName", "SiteTemplateName", languagecode, timezoneinfo)

Open in new window

Question by:Simonste
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 12

Accepted Solution

Hairbrush earned 2000 total points
ID: 33519301

While that web method doesn't give you any control of the permissions for your web, you could write a simple web service with a method that calls ResetRoleInheritance and then call the method just after you've created the meetings workspace?

Alternatively you could do both things within your own web service.

Author Comment

ID: 33532801
Thanks for your answer and I'm sure this will work...however...

I'm afraid though of the extra installation steps this will require in
each and every installation...

I'm puzzled why the permissions are NOT inherited when this is Microsofts
core strategy for all functionality regarding Sharepoint.

Isn't there a solution in an existing sharepoint web service ?
LVL 12

Assisted Solution

Hairbrush earned 2000 total points
ID: 33532869
I can't answer you on why it works this way - wish I could!

Would you be doing the installation or are you preparing some sort of OEM solution?  You could create a .wsp solution package that has a feature receiver that sets up the web service automatically?

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)


Author Comment

ID: 33533141
Preparing an OEM. Also I need a general solution for WSS 3/4 and MOSS 2007/2010.
Does this .wsp solution cover all versions ?
LVL 12

Assisted Solution

Hairbrush earned 2000 total points
ID: 33539878
Hi Simon

Yes, if you build a .WSP it will work with WSS3, MOSS2007, SharePoint Foundation 2010 and SharePoint Server 2010.
LVL 12

Expert Comment

ID: 34627147
Hi Simon - it has been 4 months since you posted your question.  Did I answer it to your satisfaction?  If so, please could you close the question?  Thanks.
LVL 17

Expert Comment

ID: 36123374
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question