Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 897
  • Last Modified:

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

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
Simonste
Asked:
Simonste
  • 4
  • 2
3 Solutions
 
HairbrushCommented:
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
 
SimonsteAuthor Commented:
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
 
HairbrushCommented:
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
When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

 
SimonsteAuthor Commented:
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
 
HairbrushCommented:
Hi Simon

Yes, if you build a .WSP it will work with WSS3, MOSS2007, SharePoint Foundation 2010 and SharePoint Server 2010.
0
 
HairbrushCommented:
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
 
GreatGermCommented:
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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now