Hi Community,
Currently testing a requirement to automate Azure DevOps project creation with Microsoft Forms and Approvals.
Flow
Create DevOps Project
Built a simple test flow, which collects form response and creates a DevOps project with the details. Creating the project works fine with the DevOps HTTP Connector. When attempting to add users to the Organization, assign licenses and permission the flow fails with the following error.
TF400813: The user is not authorized to access this resource.
Azure DevOps ActivityId: a9b72cc1-5fc0-4e96-8b1e-aa2ecfb08a25
Details: {"$id":"1","innerException":null,"message":"TF400813: The user is not authorized to access this resource. ","typeName":"Microsoft.TeamFoundation.Framework.Server.InvalidIdentityException, Microsoft.TeamFoundation.Framework.Server","typeKey":"InvalidIdentityException","errorCode":0,"eventId":3000}
clientRequestId: bf5e8e96-0b36-4ebb-88a2-2f2aa7cfd748
Add Users
I can perform all the actions manually from the DevOps portal with no issue. I have also enabled Third Party Application Access via OAuth.
User Entitlements - Add - REST API (Azure DevOps Member Entitlement Management) | Microsoft Learn
I find it strange that I can create a project, but not add any users. Any suggestions would be highly appreciated!