I'm looking for some help with a REST call I'm attempting to make in SharePoint Designer 2013 Workflow. The site is on SharePoint Online.
The call is to get info related to a specific user account.
The call I am using is this: <site url>/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i%3A0%23.f|membership|example@example.com'
If I manually append this call to the site I am building the workflow for in the browser, I get the required info back. However if I do the exact same call in a workflow "Call HTTP Web Service" action, in an app step, I get an "Unauthorized" response from the call.
I have granted permissions to the workflow app using the app ID with a permissions request of:
<AppPermissionRequests><AppPermissionRequest Scope="http://sharepoint/sitecollection/web" Right="FullControl" />
</AppPermissionRequests>
I have attempted to add an empty "Authorized" header in the call as some posts have suggested this and that caused a "Forbidden" response.
Any help or feedback on this would be great. Please let me know if more info is required.
Thanks