Dear all,
I've tried several methods to get the user profile, but still in vain.
I do search the solutions from the forums and Google.
Because the above link is still not work for me, I arise a question here.
Actually, I would like to get a user's manager, thus I use the rest api:
[%workflow content:current site URL%]_api/SP.UserProfiles.PeopleManager/GetMyProperties/extendedmanagers
However, I always get unauthorized error.
{"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"zh-TW","value":" "}}}
Below screenshots are my web service settings.
1. Build a dictionary and set Authorization, Acception, Content-Type.
2. Call web service and set the RequestHeaders.
And, I can use the rest api in the browser to see my manager (logged in).
<d:ExtendedManagers>
<d:element>i:0#.f|membership|boss@aaa.tw</d:element>
<d:element>i:0#.f|membership|admin@aaa.tw</d:element>
</d:ExtendedManagers>
Could anybody help me to clarify this issue?
Thank you!