> For the complete documentation index, see [llms.txt](https://docs.secuuth.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.secuuth.io/setup-configuration/identity-validation.md).

# Identity Validation

You can restrict the users who can login to your application

You can allow users from a selected domain or you can configure your API to allow only valid users.&#x20;

Once the API returns  userExists":"true" for the requested  id, e.g. for email "id":"<james@gmail.com>" or for phone  "id":"9196576XXXX". If the user exists he will be allowed to Login to your application.&#x20;

![](https://2956668860-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiVBIrxDmPKqx322_kk%2Fuploads%2FlqHeL0KpUTExGMktPv1z%2Fimage.png?alt=media\&token=efd651ae-a565-45e5-bfa3-8593c291b2b4)

```
[{"emailID":"james@gmail.com","userExists":"true","additionalInfo":{"group":"core","role":"admin"},"id":"james@gmail.com"},
```
