# Azure SSO and limiting scope of user/group

**URL:** <https://forum.pritunl.com/t/azure-sso-and-limiting-scope-of-user-group/224>\
**Category:** Pritunl\
**Created:** [June 28, 2022, 7:49pm UTC](https://forum.pritunl.com/t/azure-sso-and-limiting-scope-of-user-group/224 "2022-06-28T19:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsutherland](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/j/49beb7/32.png) [@jsutherland](https://forum.pritunl.com/u/jsutherland)\
**Post date:** [June 28, 2022, 7:49pm UTC](https://forum.pritunl.com/t/azure-sso-and-limiting-scope-of-user-group/224/1 "2022-06-28T19:49:08Z")

</div>

Update: I was able to limit this following the article below:

> **[Restrict a Microsoft Entra app to a set of users - Microsoft identity platform](https://learn.microsoft.com/en-us/entra/identity-platform/howto-restrict-your-app-to-a-set-of-users)**
>
> Learn how to restrict access to your apps registered in Microsoft Entra ID to a selected set of users.

Good day,

I was given the go ahead to purchase the enterprise license for Pritunl finally and have setup Azure SSO. I have searched quite a bit on this and cannot quite narrow down a way to do this.

Is there a way to limit the scope of who can sign in from our Azure tenant? Such as limit it to a group? Currently anyone who knows the URL could sign in from our tenant, I would like to keep that from happening.

Thank you!

Edit: I believe I might have found my answer right after posting this. Limiting access to the azure app (registration) that was created.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [June 28, 2022, 9:14pm UTC](https://forum.pritunl.com/t/azure-sso-and-limiting-scope-of-user-group/224/2 "2022-06-28T21:14:05Z")

</div>

Azure should provide controls over which users can access the single sign-on application.

For providers like Google that don’t provide this organizations can be used instead. Set the default single sign-on organization to one that is not attached to any servers. Then create organizations that match user group names and attach them to the servers. Users in those groups will be matched to an organization. This will prevent users without a matching organization from connecting to a VPN server.
