microsoft / microsoft/powerplatform-vscode

pac admin assign-user is failing with "WAM Error Need User interaction"

Open
#914 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.