Issue
When execute the workflow with a Send an Email action configured with body of email to get the information from User Profile properties, this error might occurs:
RequestorId: xxxxxxxx-xxxx-xxxx-0000-000000000000. Details: System.Activities.Statements.WorkflowTerminatedException: {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}}
RequestorId: xxxxxxxx-xxxx-xxxx-0000-000000000000. Details: System.Activities.Statements.WorkflowTerminatedException: {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}}
Resolution
Error Code
RequestorId: 6fbca847-0c8a-0cde-0000-000000000000. Details: System.Activities.Statements.WorkflowTerminatedException: {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform this action or access this resource."}}}
Additional Information
Access to the User Profiles service is required for use of the following manager references in workflows.
- Manager display name
- Manager email address
- Manager login name