Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

With the on-premise instance of SharePoint, I am able to call the GetUserProfileByIndex from the User Profile Service to iterate over user profiles. However, with SharePoint online 2013, I get the following error when following the NextValue link: This operation requires you to be managing your own data or have administrator privileges. Now that could mean two things :

  • My account is not properly configured for that. That seems unlikely since I use the credentials of a global admin and can access all user profiles with GetUserProfileByName.
  • Since the SharePoint Online instance is shared, this approach is simply broken because I would need permission on the whole instance, including other tenants.

Is there a way of granting permissions to my account or an alternative to the User Profile Service for listing all user profiles ?

share|improve this question
    
Which API are you using and which hosting method is being used? –  Stephen Mar 18 '13 at 15:19
    
@Stephen: I'm using the [msdn.microsoft.com/en-us/library/ms583891.aspx](user profile SOAP service). My instance of SharePoint is hosted with Office 365, if this is what you mean. –  smngnr Mar 18 '13 at 15:29
    
Yip that gives me a better idea... –  Stephen Mar 18 '13 at 15:32
add comment

1 Answer

I've done something similar but not using Webservices but using JS CSOM, not sure is this is an option for you but I found this useful.

harePoint 2013: Working with User Profiles & JavaScript CSOM

Hope this helps

S

share|improve this answer
    
Thanks, but I do not know the usernames in advance and I am limited to the soap services for technical reasons. I guess I'll just retrieve the users on a per site basis with GetUserCollectionFromSite, then retrieve their profiles by username. –  smngnr Mar 22 '13 at 17:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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