1

When I try to add user/group using SharePoint OM or Power Shell script I'm getting the following error. In this example S-9-9044-V is an AD Group.

The user does not exist or is not unique

$web = get-spweb "http://sharepoint/Year9.SCI"
$group = $web.sitegroups["Year9.SCI Students"]
$user = $web.EnsureUser("school\S-9-9044-V")
$group.AddUser($user)

I also noticed that this happens only for few AD groups and I'm able to add other users/groups successfully. Some suggested to reconfigure object cache user accounts but that doesn't help as I'm able to add other AD groups using the same script. http://technet.microsoft.com/en-us/library/ff758656.aspx

Any suggestions?

2 Answers 2

1

The group was removed from Active Directory and that caused the issue, but people picker showed the group as available.

0

Seems like a problem with User Profile, sometimes the profile is not created successfully or there is a profile sync problem! You can do it manually by running powershell:

update UserProfile via Powershell with Set-SPUser

If that doesn't help, try using the Group somewhere else like adding it in Windows Administrators or logging the system with this account! If that doesn't works that means the user/group is not created correctly in AD

1
  • I can add the AD group to Sharepoint using People picker but not through Powershell of OM Commented Jan 18, 2013 at 4:02

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.