# How to restrict a passwordless logins to a given set of users?

**URL:** <https://community.auth0.com/t/how-to-restrict-a-passwordless-logins-to-a-given-set-of-users/50806>\
**Category:** Get Help\
**Tags:** passwordless\
**Created:** [October 1, 2020, 12:01pm UTC](https://community.auth0.com/t/how-to-restrict-a-passwordless-logins-to-a-given-set-of-users/50806 "2020-10-01T12:01:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanC](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janc/32/24618_2.png) [@JanC](https://community.auth0.com/u/JanC)\
**Post date:** [October 1, 2020, 12:01pm UTC](https://community.auth0.com/t/how-to-restrict-a-passwordless-logins-to-a-given-set-of-users/50806/1 "2020-10-01T12:01:11Z")

</div>

Hi,  
I have a passwordless connection setup and it all works as expected. Now I would like only a give list of users to be able to start the passwordless login.

I see there is an option in the Passwordless connection to “disable signups” which is pretty much what I want. The question is how can I whitelist / import users to the Passwordless connection so that I have a list of whitelisted users who can do a OTP login?

I tries using the [Bulk Import](https://auth0.com/docs/users/bulk-user-imports) API but it does not accept “connections” that are not DB:

```auto
{"statusCode":400,"error":"Bad Request","message":"Connection must be a database connection","errorCode":"operation_not_supported"}%

```

cheers

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [October 1, 2020, 1:13pm UTC](https://community.auth0.com/t/how-to-restrict-a-passwordless-logins-to-a-given-set-of-users/50806/2 "2020-10-01T13:13:40Z")

</div>

Hi @JanC

You cannot bulk import passwordless users, but you can create them with the management API:

> **[Auth0 Management API v2](https://auth0.com/docs/api/management/v2?_ga=2.204152982.742907388.1601299684-1115526131.1581090409#!/Users/post_users)**

Once you have created them you can notify them that their account is ready.

John

---

<div class="post-metadata">

**Author:** ![JanC](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/janc/32/24618_2.png) [@JanC](https://community.auth0.com/u/JanC)\
**Post date:** [October 1, 2020, 6:34pm UTC](https://community.auth0.com/t/how-to-restrict-a-passwordless-logins-to-a-given-set-of-users/50806/3 "2020-10-01T18:34:20Z")

</div>

Hi John,  
That’s what I was looking for  
Many thanks for your fast answer.

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:** [October 16, 2020, 6:34pm UTC](https://community.auth0.com/t/how-to-restrict-a-passwordless-logins-to-a-given-set-of-users/50806/4 "2020-10-16T18:34:42Z")

</div>

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