microsoft / microsoft/work-iq

workiq list-agents tries to auth unsuccessfully

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

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
1k
Forks
132
Avg merge
5d 19h
Merged PRs (30d)
6

Description

Using CLI version 0.4.1.19742+d4efecc4df8abb308c4d2cda78313dcc3023cebc

workiq config set experimental=true
workiq list-agents
Fetching list of agents...

I'm already authed and accepted eula. But when I use list-agents command, I'm prompted in browser to login. After logging in on MSIT, I get this error:

Sorry, but we’re having trouble signing you in.
AADSTS50011: The redirect URI 'http://localhost:50969' specified in the request does not match the redirect URIs configured for the application 'd3590ed6-52b3-4102-aeff-aad2292ab01c'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.

Request Id: d81415ca-ed32-4218-b8ee-f6325e2d2100
Correlation Id: 269d633c-a143-4bae-b7dc-33a0a49bf5b0
Timestamp: 2026-06-02T14:16:04Z
Message: AADSTS50011: The redirect URI 'http://localhost:50969' specified in the request does not match the redirect URIs configured for the application 'd3590ed6-52b3-4102-aeff-aad2292ab01c'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.

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

Reproduce the failure with CLI version 0.4.1.19742+d4efecc4df8abb308c4d2cda78313dcc3023cebc by enabling experimental mode and running workiq list-agents while already authenticated. Trace the list-agents authentication flow and the localhost:50969 redirect; done means the command lists agents without the AADSTS50011 redirect URI error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
authentication, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.