Thursday, October 11, 2012

Access denied on site collection

We had to reattach a site collection database to a web application.  After that we were getting access denied for everyone including site owners and site collection admins.  For some reason, we could still get into the Site Settings page  ["/_layouts/settings.aspx"]

The fix was to add rights to the superuser and superreader accounts to the database.

On one of the web front ends, in Powershell, I ran the following commands:

$w = get-spwebapplication -identity http://webapplication
$w.GrantAccessToProcessIdentity("Domain\superuser")
$w.GrantAccessToProcessIdentity("Domain\superreader")

I don't know if I needed both of those, but I did both of those and it fixed the issue.

No comments:

Post a Comment