# Multiple Bugs

**URL:** <https://community.auth0.com/t/multiple-bugs/8200>\
**Category:** Get Help\
**Tags:** bugs, api, error, user, management-api\
**Created:** [September 15, 2017, 8:54pm UTC](https://community.auth0.com/t/multiple-bugs/8200 "2017-09-15T20:54:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbeljaars](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@cbeljaars](https://community.auth0.com/u/cbeljaars)\
**Post date:** [September 15, 2017, 8:54pm UTC](https://community.auth0.com/t/multiple-bugs/8200/1 "2017-09-15T20:54:46Z")

</div>

bug 1)  
I try to add a user, I get a response ‘‘already exists’’,  
when I do this, afterwards I try to get the user and link to the existing user in my code.

```
private static async Task<ManagementApiClient> GetAuth0Client()
{
        //create a token
       ......
       return new ManagementApiClient(token, "mycompany.eu.auth0.com");
}

public void CreateUser(CreateUserModel myQueueItem)
{
    var createrequest = new UserCreateRequest()
    {
        Email = myQueueItem.Email,
        EmailVerified = false,
        FirstName = myQueueItem.GivenName,
        LastName = myQueueItem.FamilyName,
        Password = myQueueItem.Password,
        Connection = "Mediapulse",
        VerifyEmail = true,
    }; 

try
{
var result = await (await GetAuth0Client()).Users.CreateAsync(createrequest);
}
catch (Exception ex)
{
   if (ex.Message.Contains("already exists"))
   {
      var result = (await (await 
      GetAuth0Client()).Users.GetAllAsync())
      .SingleOrDefault(x => x.Email == myQueueItem.Email); 
      //the result is null..
      var contact = GetContactByEmail(myQueueItem.Email);
      contact.Auth0Id = result.UserId; //throws exception 
   } 
}
}

```

but… when I look in the user list, it does not exist.

bug 2)  
the C# client.users.deleteallasync returns a 404.. the api endpoint mightve been changes, or the C# client isn’t up to date?

---

<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:56am UTC](https://community.auth0.com/t/multiple-bugs/8200/2 "2018-03-02T05:56:31Z")

</div>


