microsoft / microsoft/powerplatform-vscode
pac admin assign-user is failing with "WAM Error Need User interaction"
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 277
- Forks
- 60
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 14
Description
The code I'm running is:
pac admin assign-user --environment "https://environment-name.crm3.dynamics.com" --user $userId --role "System Administrator" --application-user
This works if I run it locally, but if I try to run it from within an Azure DevOps pipeline, it's failing with the error message:
Microsoft PowerPlatform CLI
Version: 1.24.3+g95fc6ea
Error: WAM Error
Error Code: 3399548929
Error Message: Need user interaction to continue.
Internal Error Code: 527291998
I haven't been able to find any results when searching for the error. Because it's in DevOps I'm not able to give it the user interaction, but we do have the pac authentication already set up (we're running some other commands through pac, such as importing a solution, and those are fine).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported pac admin assign-user command and compare its Azure DevOps pipeline authentication with the setup used by the other successful pac commands. Reproduce the WAM Error in a non-interactive pipeline and determine what authentication behavior differs; done means the command completes without requiring user interaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cli, cloud, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100