Quantcast
Channel: SharePoint 2013 - Using SharePoint Designer, InfoPath and Other Customizations forum
Viewing all articles
Browse latest Browse all 9368

How to use HTTP Web Service action of SharePoint 2013 Designer to get UserProfiles?

$
0
0

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.

http://social.technet.microsoft.com/Forums/sharepoint/en-US/52ceba69-5019-4175-9b34-b9e06c3472bf/rest-query-from-workflow-return-unauthorized

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!


Viewing all articles
Browse latest Browse all 9368


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>