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
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
- 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 ?