views:

18

answers:

0

HI

I am doing following steps to create new SharePoint site and then associating site As Project server site

  • I am creating new site sing SPWebCollection.Add method with inheriting permission from its parents
  • Then i am creating Project in Project center programmatically using (Project.AddProjectRow)
  • Then updating newly created site as Project workspace using UpdateProjectWorkspaceAddress method of PSI

But when i am seeing site Permission of newly created site Following is result

  • It sets the permission for the new site as unique, although i have created it using inherit parent site permission flag
  • It gives the Web administrator permission to all the users of the Web Administrator Group of Project server

Even though i am resetting the permission after completing the task it is not Setting the site permission to Inherit From parent

Weird Behavior: From the UI and using code debugging if I am setting and breaking the inheritance again(after completing proxy project server setting) it gives permission to all the users and group of the parent site (whether it is part of Web Administrators Group or not), but if I am running same set of code without debugging it gives permission only to users of Web Administrators Group of Project server.