# Azure AD login when user does not have email (F1 license)

**URL:** <https://community.appfarm.io/t/azure-ad-login-when-user-does-not-have-email-f1-license/866>\
**Category:** Ask the community\
**Tags:** login, authentication\
**Created:** [November 22, 2023, 1:11pm UTC](https://community.appfarm.io/t/azure-ad-login-when-user-does-not-have-email-f1-license/866 "2023-11-22T13:11:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlendaas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erlendaas/32/1277_2.png) [@erlendaas](https://community.appfarm.io/u/erlendaas)\
**Post date:** [November 22, 2023, 1:11pm UTC](https://community.appfarm.io/t/azure-ad-login-when-user-does-not-have-email-f1-license/866/1 "2023-11-22T13:11:40Z")

</div>

Hello!  
In our solution we have a large volume of users. We are using the custom auth provider to enable login though Microsoft (Azure AD). Initially all our users have been given a Microsoft F1 license, but to cut cost we are now looking into removing this license. The user will still have a functional account, but without a working email associated with it (Teams, Outlook etc.).

When testing login with a user without the F1 license I get the following appfarm error: _“MissingRequiredClaimError: Missing required claim, email, from id\_token”_

Under “Custom Auth Providers” I have tried checking the “Remove Custom Scope” and given only “profile” and “openid” in the Custom Scope field. And I still get the same error. It seems that appfarm require an email through the scope.

One potential fix is to enter a private email for every user inside Azure AD. This is however not practical when dealing with this many users.  
 ![2023-11-22 13_37_24-Appfarm - Error](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/cd5f349a7b2e411ab9229c07a024e79b1135c336.png)

Any suggestions? 😊

---

<div class="post-metadata">

**Author:** ![ohaabrekke](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/ohaabrekke/32/61_2.png) [@ohaabrekke](https://community.appfarm.io/u/ohaabrekke)\
**Post date:** [November 23, 2023, 11:54am UTC](https://community.appfarm.io/t/azure-ad-login-when-user-does-not-have-email-f1-license/866/2 "2023-11-23T11:54:37Z")

</div>

Hello!

As of now, email is a required claim for authentication in Appfarm. However, we are currently working on adding support for email-less accounts. Once this feature is introduced, users will be able to have functional accounts without a working email associated with them.
