Surely this has come up before, and I just can’t find the post. When a PAT is used in a workflow to make an API call to ISC, and the identity that generated the PAT leaves the company, that API call/workflow fails. So I created a service account in AD. I was going to do this as a flat file import, but the security team wanted it done with an AD account. This AD account comes in on its own source, with its own identity profile, and it has org_admin rights.
I log in as this identity, generate a PAT, and use that in my workflow, the API call fails.
"task failed: activity error (type: sp:external:http:v2, scheduledEventID: 5, startedEventID: 6, identity: 1@sp-workflow-worker-prd-us-east-1-684c58bd9-6blfn@sp-workflow-engine): request failed (type: HTTP Response Returned a Client Error, retryable: false): request failed: 401 - 401 Unauthorized - {\"error\":\"unauthorized\",\"error_description\":\"Full authentication is required to access this resource\"}"
Any ideas what I should be checking?