Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V7] ReadIdentities doens't work as intended #153

Open
Herve-M opened this issue Feb 27, 2024 · 0 comments
Open

[V7] ReadIdentities doens't work as intended #153

Herve-M opened this issue Feb 27, 2024 · 0 comments

Comments

@Herve-M
Copy link

Herve-M commented Feb 27, 2024

Using github.com/microsoft/azure-devops-go-api/azuredevops/v7/identity / ReadIdentities(context.Context, ReadIdentitiesArgs) (*[]Identity, error) should target https://vssps.dev.azure.com/fabrikam/_apis/identities.

Context

"github.com/microsoft/azure-devops-go-api/azuredevops/v7/identity"

test := "aad.MDA0NzBlMzQtZGE2MS03YTY5LWJkOTYtNDg3YTg0OWVjNTU4"
legacyIdentities, err := identityClient.ReadIdentities(ctx, identity.ReadIdentitiesArgs{
  SubjectDescriptors: &test,
  QueryMembership:    &identity.QueryMembershipValues.None,
})

Waited behavior:

Using subjectDescriptors with a VSId and queryMembership=None should works in 7.1-preview.1

URI should be like: https://vssps.dev.azure.com/fabrikam/_apis/identities?subjectDescriptors=aad.MDA0NzBlMzQtZGE2MS03YTY5LWJkOTYtNDg3YTg0OWVjNTU4&queryMembership=None&api-version=7.1-preview.1 according to the doc. (and working in with curl/postman)

Current behavior:

Using subjectDescriptors with a VSId and queryMembership=None in 7.1-preview.1 return:

Invalid argument value.\r\nParameter name: The identity (no guid supplied) is not recognized.

Is it using another endpoint?

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

No branches or pull requests

1 participant