none
Office 365 to get a user's profile problem RRS feed

  • Question

  • Hello,

    I'm trying to use the REST API in Office 365 to get a user's properties from his user profile.

    I use Rest API 

    https://site/_api/SP.UserProfiles.PeopleManager/GetMyProperties

    and also try JSOM

                    var peopleManager = new SP.UserProfiles.PeopleManager(clientContext);
                    
                    userProfileProperties = peopleManager.getMyProperties();

    In Office 365 i get this error

    <m:code>-2147024809, System.ArgumentException</m:code>

    <m:message xml:lang="ru-RU">An item with the same key has already been added.</m:message>

    In my SharePoint server work fine.

    Any idea what am i doing wrong?

    Tuesday, August 27, 2013 1:35 PM

Answers

All replies