Sharepoint lockout - sharepoint

Recently a guy from our 3rd line team thought it would be funny to delete my account from AD. This has now been re-added. Everything is back to normal apart from my Access to Sharepoint sites.
I am getting The file exists. (Exception from HRESULT: 0x80070050) Error on all sites.
After some googleing I came across a guy with the same issue and it was an issue with the SID being different from my old account. Since this I deleted my account from Site Administrators and re-added. This would refresh the SID with the new one. I also check on the Content database that the site ID matched using the following transactions and the SIDs match.
select s.Id, w.FullUrl from Sites s inner join Webs w on
s.RootWebId = w.Id
select * from UserInfo where tp_Login='domain\username' and
tp_SiteID='<ID Code>'
I am now a bit clueless.

I have now deleted the user account from Site Colection from Central Admin and also deleted from Site Collection from all the seperate sites. Performed a IISreset and then re-added the user account to Site Colection in Cental Admin and onto all sites. I have now got all my access rights back.

You could have used the command:
stsadm -o migrateuser ...
To copy your old rights into your new account.

Related

Sharepoint Requesting Access to ressource

I have an issue here with an user who has taken over the email of an old employee.
aa#domain.com
When searching for the user in sharepoint the correct name shows up
"Alex Alexen"
When looking at the user data either in azure active directory,graph api or delve
it all shows up as
"Alex Alexen"
However, if "Alex Alexen" tries to access a site he does not have access to "request access", the request shows up as
"Ali Alison" has requested access to X.
"Accept/Deny"
Is there somewhere else on sharepoint where user data is store?
Many years have
Years have passen from Ali to Alex.
• In sharepoint online, the items are retained for a period of 93 days from the time you delete them from their original location. They stay in the site recycle bin for the time until the bin is emptied, or the items are deleted from there. After that, these items are permanently deleted from the sharepoint database.
• Check if you are using directory synchronization, if yes, then the user has to be deleted from the on premises active directory first and then from Microsoft 365 admin center. After you delete a user, a series of jobs will remove the user from sharepoint. After the next incremental profile import job, the user (or users) will be marked as deleted, the user's profile page will be deleted, and the user's OneDrive will be marked for deletion by the MySite cleanup job.
• To delete a user from Microsoft 365 admin center, you will have to login as a global administrator and delete the user from there. Also, you can try clearing the browser cache and history of the browser from which you are accessing the sharepoint site.
Even after deleting a user from Microsoft 365, if the user still appears in people searches, you will have to delete it from user info list. To do this, please refer the steps below: -
• Browse to each site collection that the user had access to and visited the site, then add the ‘/_layouts/15/people.aspx?MembershipGroupId=0’ string to the site collection URL as a suffix and access it. Ex.: - ‘https://abc.manage.com/_layouts/15/people.aspx?MembershipGroupId’
• Once opened, select the person from the list, then on the ‘Actions’ menu, select ‘Delete users from site collection’.
Please refer the below links for more information: -
https://learn.microsoft.com/en-us/compliance/assurance/assurance-sharepoint-online-data-deletion
https://learn.microsoft.com/en-us/sharepoint/remove-users
Thanking you,

Database issue in sharepoint 2010

There's a strange problem on my sharepoint website. When I try to give access to a user on home page it detects a different name of that user, say abc pqr, and on sites and lists its detects a different name, say abc def pqr(middle name added in second name).
When I give access to a user the name is pulled from the active directory. So, I contacted the person who manages active directory to clarify if 2 accounts have been created for the same user in active directory. But this is not the case. I myself checked the active directory and there's only one account of this user and i.e. with the name abc pqr.
So, the user is able to access the home page but not the sites.
So my next guess is somewhere in the sharepoint database, this second name exists. But I'm unable to find the user database.
Also, when I tried to access the profile of this user by clicking on abc pqr, I was able to see the profile(my site).
But, when I clicked on abc def pqr I got this error - An unexpected error occurred. Troubleshoot the cases with sharepoint foundation(something like that with a correlation id). - For this I tried to start the profile synchronization but its not starting. I start it and then come back to synchronization page, in the right hand side it still mentions "Profile synchroniztion unavailable."
More info - this user's name was first deleted from the active directory and then was again added after a few years.
I guess I need to find out the sharepoint access database and there I need to delete this second name because except the homepage all the site, lists, libraries(when I try to give access) are pulling the second name.
can anyone help me with this?
Thanks in advance!
PS: I'm too new to sharepoint. So, sorry for the confusion I might have created. And, would love it if somebody explains me as to where is the backend of a sharepoint webste.
Have you tried giving permissions using the username instead of the name?
If you suspect that there's a duplicate user in your SQL database (Your SP site uses both AD and FBA?), all info about FBA db is found here: http://blog.morg.nl/2011/08/step-by-step-forms-based-authentication-fba-on-sharepoint-2010/

Incorrect email and username in Sharepoint

here's my issue:
We have a brand new Sharepoint Server that we built out and started adding users by creating a group for them on the server and creating local usernames (so no domain involved) and then adding them to Sharepoint. I added a name wrong. I added server1\bob.shoo when I should have put in server1\bob.shoe.
I tried to delete the local username and build it back brand new, but for some reason when I try to add it back to Sharepoint it still remembers his name and email address as server1\bob.shoo with bob.shoo#email.com.
How can I get Sharepoint to forget all that information? I'm kind of stumped, considering the Sharepoint account was deleted, the incorrect local account was deleted, and this should be brand new. Yet it still sees it as bob.shoo. Is there some way to access the Sharepoint Database to see exactly what's being saved in there and change it? If I could just change it manually I'd be fine with that, but right now it remembers everything incorrectly.
As always, thanks in advance.
I'm not sure by what you mean by "SharePoint Account".
Try deleting the User Profile from under Central Administration > Shared Services Administration > User Profiles and Properties > View User Profiles

Forms/AD Authentication with Sharepoint

All,
I'm configuring Sharepoint to use forms authentication with LDAP/Active Directory. I'm new to Sharepoint, so if this is obvious, please point me in the right direction.
Whenever I attempt to log in with a bad account or password, I get the very friendly (and correct) error message,
The server could not sign you in. Make
sure your user name and password are
correct, and then try again.
... which implies that Sharepoint is able to communicate with AD. If I log in with a valid account, I get a page that says:
alt text http://img63.imageshack.us/img63/6053/sharepointerror.png
(I added the grey bar to cover up the login name)
Any suggestions? The account I'm logging in with is an administrator and has been granted full control in central administration.
Also, interesting note: If I click the "sign in as a different user" link, and attempt to sign in using with the same credentials I just used, the site just redirects back to the login page, with no error or status message. If I then manually enter the site url, it again shows the "Error: Access Denied" page. Argh.
Go to site action of the actual site and add user in the format of
:loginid
It should resolve and show it underlined then try login in back to application that should fix it.
Your AD connection is working fine just need to add to sharepoint users list
yourprovider:userid
Yourprovider name is the name you gave to the user provider in web config
And you can add this user from parent site that is windows protected and you have all
I suppose it's sharepoint site security issue.
I'm getting the same error when trying to enter Site Settings page with a user that has a lack of permissions.
If you have at least one user that can access the Site Settings page, I suggest you to go to Site Actions/Site Settings/Users and Permissions/People and grops then click New button and add a user from AD to an appropriate group, eg. Team Site Members.
You have made connection with Ad and its working fine. So that you got error, when you try to login with invalid user id.
But you have missed one step in above scenario.
You need to give the permission for all AD users in your SharePoint site. The better way is to create a user group in AD (it may already there) which included all the users and add this user group in your SharePoint site with read permission.

Deleted everything but members from a SharePoint site

I created a SharePoint sub-site, and accidently deleted all permissions groups except for the Members (which included me) and now I'm stuck looking at the site I've created but I'm not able to edit or delete it and create a new one.
Any idea of what I could do to get myself out of this situation?
Thanks,
Ash
Normally you can still sign-in with the system account.
If not try adding the system account to the Site Collection Administrators. (In the settings of the root site of the site collection. )
You'll need to use an account that's in the Site Collection Administrators.
If you're not able to view the Site Collection Administrators (in Site Settings), you'll need to contact the admins of the site and ask them to re-assign you Full Control permissions to your site so you can begin rebuilding your site permissions.

Resources