# GrantType Resource Owner Password not allowed

**URL:** <https://community.auth0.com/t/granttype-resource-owner-password-not-allowed/7285>\
**Category:** Get Help\
**Tags:** grant-types\
**Created:** [June 27, 2017, 6:51pm UTC](https://community.auth0.com/t/granttype-resource-owner-password-not-allowed/7285 "2017-06-27T18:51:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![roshni](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@roshni](https://community.auth0.com/u/roshni)\
**Post date:** [June 27, 2017, 6:51pm UTC](https://community.auth0.com/t/granttype-resource-owner-password-not-allowed/7285/1 "2017-06-27T18:51:26Z")

</div>

I’m using AuthenticationApi Resource Owner Flow for authenticating user as shown in below code.

```
var result = await
client.GetTokenAsync(new
ResourceOwnerTokenRequest
            {
                ClientId = _auth0Settings.ClientId,
                ClientSecret = _auth0Settings.ClientSecret,
                Audience = _auth0Settings.ApiIdentifier,
                Scope = scope + " all",
                Realm = connection,
                Username = loginViewModel.EmailAddress,          

                Password = loginViewModel.Password,
            });
            var access_token = result.AccessToken;

```

I was able to get access\_token successfully while using old Auth0 account created at 28/05/2017, but while using same code with new Auth0 account + newly created users, I am getting an error:

> Grant type ‘[http://auth0.com/oauth/grant-type/password-realm](http://auth0.com/oauth/grant-type/password-realm)’ not allowed for the client.

According to [this](http://community.auth0.com/questions/3944/error-grant-type-password-not-allowed-for-the-clie) post, by using Management Api I can add grant-type to given client. But question is how to do so?

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [July 3, 2017, 9:41am UTC](https://community.auth0.com/t/granttype-resource-owner-password-not-allowed/7285/2 "2017-07-03T09:41:10Z")

</div>

Your post does not provide any specific question to answer. `But question is how to do so?` - do you mean what endpoint to call, what request body, etc? The post you referenced provides the necessary info - Please read through the links provided in there.

[http://community.auth0.com/questions/3944/error-grant-type-password-not-allowed-for-the-clie](http://community.auth0.com/questions/3944/error-grant-type-password-not-allowed-for-the-clie)

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [July 3, 2017, 9:41am UTC](https://community.auth0.com/t/granttype-resource-owner-password-not-allowed/7285/3 "2017-07-03T09:41:10Z")

</div>

Your post does not provide any specific question to answer. `But question is how to do so?` - do you mean what endpoint to call, what request body, etc? The post you referenced provides the necessary info - Please read through the links provided in there.

[http://community.auth0.com/questions/3944/error-grant-type-password-not-allowed-for-the-clie](http://community.auth0.com/questions/3944/error-grant-type-password-not-allowed-for-the-clie)

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 11, 2017, 5:34pm UTC](https://community.auth0.com/t/granttype-resource-owner-password-not-allowed/7285/4 "2017-07-11T17:34:00Z")

</div>

Also have in mind that grant types can now also be managed through the Dashboard by going to the client application advanced settings.

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/granttype-resource-owner-password-not-allowed/7285/5 "2018-03-02T05:55:00Z")

</div>


