# Using API to generate user access\_token for automated testing, organization members

**URL:** <https://community.auth0.com/t/using-api-to-generate-user-access-token-for-automated-testing-organization-members/122813>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [December 11, 2023, 2:15pm UTC](https://community.auth0.com/t/using-api-to-generate-user-access-token-for-automated-testing-organization-members/122813 "2023-12-11T14:15:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amngs](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@amngs](https://community.auth0.com/u/amngs)\
**Post date:** [December 11, 2023, 2:15pm UTC](https://community.auth0.com/t/using-api-to-generate-user-access-token-for-automated-testing-organization-members/122813/1 "2023-12-11T14:15:35Z")

</div>

Our QA team is automating the testing of our APIs. Our application users are all members of organizations.

We tried using the Resource Owner Password ([https://auth0.com/docs/api/authentication#resource-owner-password](https://auth0.com/docs/api/authentication#resource-owner-password)) API to generate an access token for a user, however “grant type ‘password’ not allowed for the client”.

The application itself has the “accessed by team members of organizations” setting set, so on the Grants page it says “Only the Implicit, Authorization Code and Refresh Token grant types are currently allowed for applications that are accessed by team members of organizations”.

Is there any other way that the APi can be used to generate an access token for a user who is a member of an organization using their username and password? Or it it only possible to go via the UI?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [December 19, 2023, 6:36pm UTC](https://community.auth0.com/t/using-api-to-generate-user-access-token-for-automated-testing-organization-members/122813/3 "2023-12-19T18:36:46Z")

</div>

Hi @amngs,

The organizations does not currently support the resource owner password grant. Feel free to drop us a feature request here: #Feedback .

Otherwise, you will need to retrieve a token via the UI.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 2, 2024, 6:37pm UTC](https://community.auth0.com/t/using-api-to-generate-user-access-token-for-automated-testing-organization-members/122813/4 "2024-01-02T18:37:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
