# Error when calling new method GetUsersByEmailAsync in .Net Library 4.6.0

**URL:** <https://community.auth0.com/t/error-when-calling-new-method-getusersbyemailasync-in-net-library-4-6-0/8606>\
**Category:** Get Help\
**Tags:** net-core, error\
**Created:** [October 27, 2017, 8:39pm UTC](https://community.auth0.com/t/error-when-calling-new-method-getusersbyemailasync-in-net-library-4-6-0/8606 "2017-10-27T20:39:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Redman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mark_redman/32/6240_2.png) [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Post date:** [October 27, 2017, 8:39pm UTC](https://community.auth0.com/t/error-when-calling-new-method-getusersbyemailasync-in-net-library-4-6-0/8606/1 "2017-10-27T20:39:10Z")

</div>

I am using the new API call to get users by email:

```
var scopes = new
                {
                    users = new
                    {
                        actions = new] { "read" }
                    },
                    users_app_metadata = new
                    {
                        actions = new] { "read" }
                    }
                };

    var client = GetClient(scopes);
    var users = await client.Users.GetUsersByEmailAsync(email);

```

I get the following error: `Additional properties not allowed`

> {Auth0.Core.Exceptions.ApiException:  
> Query validation error: 'Additional  
> properties not allowed: '. at  
> Auth0.Core.Http.ApiConnection.d\_\_15.MoveNext()  
> in  
> C:\Development\auth0\auth0.net\src\Auth0.Core\Http\ApiConnection.cs:line

Please let me know what I am doing wrong, are the properties referring to scopes?

---

<div class="post-metadata">

**Author:** ![jerrie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerrie/32/5898_2.png) [@jerrie](https://community.auth0.com/u/jerrie)\
**Post date:** [October 27, 2017, 9:03pm UTC](https://community.auth0.com/t/error-when-calling-new-method-getusersbyemailasync-in-net-library-4-6-0/8606/2 "2017-10-27T21:03:55Z")

</div>

My apologies. This is a mistake on my side. I did not publish a new version of the Auth0.Core Nuget package, which fixes that error.

I have now published Auth0.Core V4.0.1 which fixes that error, and also Auth0.ManagementApi V 4.6.1 which takes a dependency on that particular version.

It should be available on NuGet in a few minutes

---

<div class="post-metadata">

**Author:** ![Mark\_Redman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mark_redman/32/6240_2.png) [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Post date:** [October 27, 2017, 9:04pm UTC](https://community.auth0.com/t/error-when-calling-new-method-getusersbyemailasync-in-net-library-4-6-0/8606/3 "2017-10-27T21:04:33Z")

</div>

Cool, cheers

---

<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:57am UTC](https://community.auth0.com/t/error-when-calling-new-method-getusersbyemailasync-in-net-library-4-6-0/8606/4 "2018-03-02T05:57:11Z")

</div>


