1

I use SharePoint Server 2013 and I am trying user profile synchronization from Active Directory. I followed https://blogs.technet.microsoft.com/meacoex/2013/08/04/step-by-step-active-directory-import-for-sharepoint-2013/ .

I can see all Active Directory users in Sharepoint. I request GetUserInfo and GetGroupCollectionFromUser in Sharepoint API via soapUI but sid field is empty for all user. You can see the response as follow:

<GetUserInfo> <User ID="17" Sid="" Name="testUser" LoginName="i:0#.w|lagom\testUser" Email="[email protected]" Notes="" IsSiteAdmin="False" IsDomainGroup="False" Flags="0"/> </GetUserInfo> 

I follow here and saw the sid value isn't empty.

How can I sync "Sid" ?

How can I fill the sid field?

How can I configure Sharepoint or Active Directory?

1 Answer 1

2

Try with the REST api, like this:

<siteurl>/_api/sp.userprofiles.peoplemanager/getuserprofilepropertyfor(accountname=@v, propertyname='SID')?@v='<accountname>' 
8
  • Thanks, I could see "sid" value via your method. Why can not I see via my method? Commented Dec 29, 2016 at 12:23
  • The SPUser.Sid property seems to not be populated when you use Claims. You should use the SystemUserKey, like this: _spPageContextInfo.SystemUserKey , which returns the value with the format 1:0).w|<sid>, or call the REST api for other users than the current one. Commented Dec 29, 2016 at 12:31
  • You could also use JSOM code: msdn.microsoft.com/en-us/library/office/… Commented Dec 29, 2016 at 12:34
  • Is it usual not to be populated of sids at Claims or does it point a misconfiguration at AD synch? Commented Dec 29, 2016 at 13:47
  • Is the expected behaviour, not a misconfiguration of the User Profile Sync Commented Dec 29, 2016 at 16:07

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.