# Missing create:user\_tickets scope when using the Auth0 .NET SDK

**URL:** <https://community.auth0.com/t/missing-create-user-tickets-scope-when-using-the-auth0-net-sdk/80058>\
**Category:** Get Help\
**Tags:** csharp, .net, management-api\
**Created:** [March 17, 2022, 10:25am UTC](https://community.auth0.com/t/missing-create-user-tickets-scope-when-using-the-auth0-net-sdk/80058 "2022-03-17T10:25:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fishmoose](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fishmoose/32/12799_2.png) [@fishmoose](https://community.auth0.com/u/fishmoose)\
**Post date:** [March 17, 2022, 10:25am UTC](https://community.auth0.com/t/missing-create-user-tickets-scope-when-using-the-auth0-net-sdk/80058/1 "2022-03-17T10:25:18Z")

</div>

We’re using the Auth0 .NET SDK to interact with the management API.

The `ManagementApiClient` (named `ManagementClient `) is created like so:

```auto

var response = await _authClient.GetTokenAsync(new ClientCredentialsTokenRequest
{
    Audience = AUDIENCE,
    ClientId = CLIENT_ID,
    ClientSecret = CLIENT_SECRET,
});
var mc = new HttpClientManagementConnection(_authHttpClient);
ManagementClient = new ManagementApiClient(response.AccessToken, DOMAIN, mc);

```

Then we want to trigger a password change ticket and do this:

```auto
var ticket = await ManagementClient.Tickets.CreatePasswordChangeTicketAsync(new PasswordChangeTicketRequest
{
    UserId = userId
});

```

This fails with the message `Auth0.Core.Exceptions.ErrorApiException: Insufficient scope, expected any of: create:user_tickets`.

The setup works fine when interacting with the `ManagementClient.Users` methods.

I’m a bit confused how we’re supposed to set up the scopes here and make sure we’re getting the correct ones when setting up the client.

---

<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:** [March 17, 2022, 8:29pm UTC](https://community.auth0.com/t/missing-create-user-tickets-scope-when-using-the-auth0-net-sdk/80058/3 "2022-03-17T20:29:43Z")

</div>

Hi @fishmoose, (nice name 😆)

Make sure you have the permission turned on for this app in your management API settings.

 ![Screen Shot 2022-03-17 at 1.26.18 PM](https://global.discourse-cdn.com/auth0/original/3X/1/8/184f6f4ebdb0d12e68e4a39ec17ae36e68079e29.png)

---

<div class="post-metadata">

**Author:** ![fishmoose](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fishmoose/32/12799_2.png) [@fishmoose](https://community.auth0.com/u/fishmoose)\
**Post date:** [March 18, 2022, 9:01am UTC](https://community.auth0.com/t/missing-create-user-tickets-scope-when-using-the-auth0-net-sdk/80058/4 "2022-03-18T09:01:49Z")

</div>

That’s it! Thanks.

For anyone else wondering, the dropdown button is easy to miss:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/8/9/894de4c17e8c3d5ec5b14772a2e69413c4bc2030.png)

---

<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:** [March 18, 2022, 3:56pm UTC](https://community.auth0.com/t/missing-create-user-tickets-scope-when-using-the-auth0-net-sdk/80058/5 "2022-03-18T15:56:12Z")

</div>

Thanks for following up!

---

<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:** [April 22, 2022, 12:02am UTC](https://community.auth0.com/t/missing-create-user-tickets-scope-when-using-the-auth0-net-sdk/80058/6 "2022-04-22T00:02:15Z")

</div>


