Database issue in sharepoint 2010 - sharepoint

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/

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,

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

Unable to add users into sharepoint if i am Using emails as account name in Active Directory

I am using moss 2007 version 12.0.0.6421. and Active directory version 6.0.. . my AD domain is siamint so if i add a user as vikas. it gets added in AD with logon name as vikas#siamint.com now if i add a user sahil#yahoo.com into ad. it gets added as sahil#yahoo.com#siamint. now when i try to add user from peoples and groups,site settings in a sharepoint site; i gets user siamint\sahil in people picker. rather it should be siamint\sahil#yahoo.com. it means the name is truncated from #. Is this a sharepoint error or what. Ultimately i think it means we cannot add users with # in their usernames.
When you add a user to Active-Directory you give a "user session Name" (1) which is composed with the domain name (2) to give an attribute which is the real login name stored in an attribute called "userPrincipalName".
So "jpb#dom.fr" in the preceding picture IS NOT a mail adress but the UPN (userPrincipalName) of your user in Active-Directory.
Since Windows 2000 UPN is supposed to replace the old login string (3)
Edited
Sorry, it's in french, but as you can see '#' is allowed in the logon part of the UPN. Look in Microsoft documentation (Active directory naming) for more information.

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.

Account doesn't sync with AD - MOSS - WSS User Profile sync

I'm working on a project that uses MOSS 2007. We have user profiles set up to sync from AD and see the following behavior.
Take the user Jane Doe and her account MYDOMAIN\JaneDoe
She becomes part of a site collection
Her settings look fine when clicking My Settings or when another user looks at her info by clicking on her under People and Groups
She gets married and is renamed Jane Married with account MYDOMAIN\JaneMarried
The Shared Service Provider User Profile incremental import occurs
The profile looks good in the Shared Service Provider
The User Profile Synchronization Timer Job runs
The changes to Name and User name show properly in the My Settings or People and Groups but the Account field still has the old value until the new id (MYDOMAIN\JaneMarried) is added to the All Users.
Any ideas on where we might be missing something from a config standpoint? Or is there a SharePoint bug?
Thanks
Take a look at the stsadm command migrateuser:
http://technet.microsoft.com/en-us/library/cc262141.aspx
We have seen this before at my current client where some women will change their name due to marriage and the profile import will work fine for some but fail for the other. This command typically will fix that issue.
Take a look at SharePoint AD Sync. Have not used it before but your question reminds me that tool.
Only for your information.

Resources