Skip to content

Look up the Marketplace member ID through connectionData - #3

Merged
DodecaDev-LLC merged 1 commit into
mainfrom
fix/marketplace-identity-lookup
Oct 13, 2026
Merged

DodecaDev-LLC merged 1 commit into
mainfrom
fix/marketplace-identity-lookup

Conversation

@DodecaDev-LLC

Copy link
Copy Markdown
Owner

Why

The first manual run of VS Code extension with show_marketplace_identity failed at the lookup step (run 38419135682):

VSS011031: There is no profile for the authenticated user in the system.

The Azure sign-in itself worked, which confirms the federated credential, the environment and the repository variables. The failing piece is profiles/me: a managed identity never has an Azure DevOps profile, so that endpoint has nothing to return.

What changes

The lookup now calls https://app.vssps.visualstudio.com/_apis/connectionData and reads authenticatedUser.id, which exists for any signed-in identity. That ID is what the publisher's Members page takes. Another project hit the same error and made the same change: String-Utility-Belt/string-utility-belt#46.

If the call returns no ID, the step now fails with a clear message instead of printing an empty one.

Testing

actionlint reports nothing. The job only runs on main (environment rule), so the real check is running it again after merging.

🤖 Generated with Claude Code

profiles/me answers "VSS011031: There is no profile for the authenticated
user" for a managed identity, which never has an Azure DevOps profile. The
identity ID the publisher's Members page takes is authenticatedUser.id
from connectionData, which works for any signed-in identity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DodecaDev-LLC
DodecaDev-LLC merged commit 109b40e into main Oct 13, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant