🌟Product Update: New Search features in the Users API

Following on this morning's announcement about the new Users administration user interface, I wanted to point out that there is also a new search capability in the Users REST API. You can now use the REST API to search for users by the following:

  • username
  • first name
  • last name
  • email address
  • API ID
  • login enabled
  • SAML user
  • login status
  • role
  • teams

 

The API documentation has been updated to show the new endpoint. Please let us know if you have any questions.


  • jason.curtis (Community Member)

    I have tried it out this morning with the new endpoint. I tried searching by email and then tried with the login_enabled, but neither seem to work. I get a response back "forbidden":

    says Access Denied, but I know my creds are correct.

     

     

    here is the url:

     

    https://api.veracode.com/api/authn/v2/users/search?login_enabled=true

     

    Let me know if I am missing a detail. Thanks,

     

    Jason

     

     

     

     

    Expand Post
  • @jason.curtis (Community Member)​ , what roles do your API credentials have? You need to have either Administrator (human user) or Admin API (API service account) to call this endpoint.

     

    If you have the correct roles, would you mind checking the headers in the response and letting us know the value of the x-conversation-id header? Your syntax is correct so something else may be happening.

    Expand Post
  • jason.curtis (Community Member)

    Sure..let me check that too. This is an api user and has these roles:

     

    roles

  • @jason.curtis (Community Member)​ , thanks for flagging this. I've confirmed that this endpoint is not accessible with an API Service Account and have filed a bug ticket with our engineering team to fix the issue. I'll post back here when we've addressed it.

    • @jason.curtis (Community Member)​ and folks - we've fixed the problem and you should now be able to access this endpoint with an API Service Account with the Admin API role. Thanks again for reporting the issue!

  • jason.curtis (Community Member)

    cool so now I get a big bug bounty, right? haha! Thank you!

  • jason.curtis (Community Member)

    @Tim J (Veracode PM) (Veracode)​ Thank you very much for the quick turnaround on this.  I have just tested several queries and now it is working with my api user account which will be very helpful.   Thanks again.  I will let you know if I run into issues on my other tests.

     

    Thanks,

     

    Jason​

    Expand Post

Topics (5)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.