Skip to main content
Tweeted twitter.com/StackSharePoint/status/681112559861284864

I am having an issue on Sharepoint Online(Provider-hosted app) with calling User Profile REST API using AppOnlyAccessToken. My app has the feature to give permission on the fly to 'AllProfiles.Manage' scope. It managed to works with User + App token where I am getting Manager from User Profile but when I tried using AppOnlyAccessToken, it just throws me the error below:

Link to rest api call: https://test.sharepoint.com/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='i%3a0%23.f%7cmembership%7cuser01%40test.onmicrosoft.com

https://test.sharepoint.com/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='i%3a0%23.f%7cmembership%7cuser01%40test.onmicrosoft.com

'AdditionalAdditional information: Internal Server Error - {"error":{"code":"-1, Microsoft.Office.Server.UserProfiles.UserNotFoundException","message":{"lang":"en-US","value":"User 'i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint' doesn't exist in UPA by UPN or SID, and user with this SID was not found in AD."}}}':

Internal Server Error - {"error":{"code":"-1, Microsoft.Office.Server.UserProfiles.UserNotFoundException","message":{"lang":"en-US","value":"User 'i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint' doesn't exist in UPA by UPN or SID, and user with this SID was not found in AD."}}}'

Anyone has any solutions to resolve this issue ?

I am having an issue on Sharepoint Online(Provider-hosted app) with calling User Profile REST API using AppOnlyAccessToken. My app has the feature to give permission on the fly to 'AllProfiles.Manage' scope. It managed to works with User + App token where I am getting Manager from User Profile but when I tried using AppOnlyAccessToken, it just throws me the error below:

Link to rest api call: https://test.sharepoint.com/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='i%3a0%23.f%7cmembership%7cuser01%40test.onmicrosoft.com

'Additional information: Internal Server Error - {"error":{"code":"-1, Microsoft.Office.Server.UserProfiles.UserNotFoundException","message":{"lang":"en-US","value":"User 'i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint' doesn't exist in UPA by UPN or SID, and user with this SID was not found in AD."}}}'

Anyone has any solutions to resolve this issue ?

I am having an issue on Sharepoint Online(Provider-hosted app) with calling User Profile REST API using AppOnlyAccessToken. My app has the feature to give permission on the fly to 'AllProfiles.Manage' scope. It managed to works with User + App token where I am getting Manager from User Profile but when I tried using AppOnlyAccessToken, it just throws me the error below:

Link to rest api call:

https://test.sharepoint.com/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='i%3a0%23.f%7cmembership%7cuser01%40test.onmicrosoft.com

Additional information:

Internal Server Error - {"error":{"code":"-1, Microsoft.Office.Server.UserProfiles.UserNotFoundException","message":{"lang":"en-US","value":"User 'i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint' doesn't exist in UPA by UPN or SID, and user with this SID was not found in AD."}}}'

Anyone has any solutions to resolve this issue ?

Source Link

User 'app@sharepoint' doesn't exist in UPA by UPN or SID, and user with this SID was not found in AD

I am having an issue on Sharepoint Online(Provider-hosted app) with calling User Profile REST API using AppOnlyAccessToken. My app has the feature to give permission on the fly to 'AllProfiles.Manage' scope. It managed to works with User + App token where I am getting Manager from User Profile but when I tried using AppOnlyAccessToken, it just throws me the error below:

Link to rest api call: https://test.sharepoint.com/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='i%3a0%23.f%7cmembership%7cuser01%40test.onmicrosoft.com

'Additional information: Internal Server Error - {"error":{"code":"-1, Microsoft.Office.Server.UserProfiles.UserNotFoundException","message":{"lang":"en-US","value":"User 'i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint' doesn't exist in UPA by UPN or SID, and user with this SID was not found in AD."}}}'

Anyone has any solutions to resolve this issue ?