Trying to use the "call http web service" action from a SharePoint Designer 2013 workflow to get the user's manager. The url for the web service is:
https://server/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='domain\username'.
This url returns a value when tested from the browser. Outputting the response code to the log consistently results in "unauthorized". I have tried the "call http web service" action both in and out of an app step.
This is SharePoint 2013, on-premise.
How do I successfully call the user profile service, or is there an easier way to get the users manager?