Solved

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

Posted on 2010-08-24
8
844 Views
Last Modified: 2012-06-27
Hi,
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

0
Comment
Question by:Simonste
  • 4
  • 2
8 Comments
 
LVL 12

Accepted Solution

by:
Hairbrush earned 500 total points
ID: 33519301
Hi

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.
0
 

Author Comment

by:Simonste
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 ?
0
 
LVL 12

Assisted Solution

by:Hairbrush
Hairbrush earned 500 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?

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:Simonste
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 ?
0
 
LVL 12

Assisted Solution

by:Hairbrush
Hairbrush earned 500 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.
0
 
LVL 12

Expert Comment

by:Hairbrush
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.
0
 
LVL 17

Expert Comment

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

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

These instructions are based on installing Owncloud on your new raspberry pi connected with a usb HDD. What do you need Part A? A Raspberry Pi, model B. A boot SD card for the Raspberry Pi. A usb HDD An Ethernet cable to connect to the lo…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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