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="testUser@tesDomain.com" 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?

2

Try with the REST api, like this:

<siteurl>/_api/sp.userprofiles.peoplemanager/getuserprofilepropertyfor(accountname=@v, propertyname='SID')?@v='<accountname>'
  • Thanks, I could see "sid" value via your method. Why can not I see via my method? – cguzel Dec 29 '16 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. – Cecilia Dec 29 '16 at 12:31
  • You could also use JSOM code: msdn.microsoft.com/en-us/library/office/… – Cecilia Dec 29 '16 at 12:34
  • Is it usual not to be populated of sids at Claims or does it point a misconfiguration at AD synch? – cguzel Dec 29 '16 at 13:47
  • Is the expected behaviour, not a misconfiguration of the User Profile Sync – Cecilia Dec 29 '16 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.