# Only access to app from people on a certain domain

**URL:** <https://community.glideapps.com/t/only-access-to-app-from-people-on-a-certain-domain/41984>\
**Category:** Ask for Help\
**Created:** [May 15, 2022, 2:07pm UTC](https://community.glideapps.com/t/only-access-to-app-from-people-on-a-certain-domain/41984 "2022-05-15T14:07:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [May 15, 2022, 2:07pm UTC](https://community.glideapps.com/t/only-access-to-app-from-people-on-a-certain-domain/41984/1 "2022-05-15T14:07:17Z")

</div>

## Case

I have a number of company internal images that I only want to share with people of the organisation.  
The people could have an email address like: [me@xyz.com](mailto:me@xyz.com) or [you@xyz.com](mailto:you@xyz.com)

The organisation could have 1000 employees

Any ideas to achieve this by use of public users - if at all possible?

## Details

**Table with private image**

| private image | row owner |
| --- | --- |
| Image1 | employee |
| Image2 | employee |

**User profiles table**

| Email | role |
| --- | --- |
| [me@xyz.com](mailto:me@xyz.com) | employee |
| [you@xyz.com](mailto:you@xyz.com) | employee |

If possible, the role should be set to employee when the domain is [xyz.com](http://xyz.com)

When I read about the roles in the documentation it refers to the old pricing concept I believe

_If your app is on a Private Plan, you can assign roles to the users in your [User Profiles] table._

> **[Glide Docs](https://www.glideapps.com/docs)**
>
> Welcome to Glide Docs, a steadily growing collection of articles and videos on how to use Glide. We can’t wait to see what you build!

I wonder how this works with the new pricing concept?

It could be great if logic applied on user profiles table could open up for rows owned by a certain role - in the example above if you have the [xyz.com](http://xyz.com) domain then you get the role employee and then the rows in the table with private images are made available to use.

---

<div class="post-metadata">

**Author:** ![Krivo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/krivo/32/5363_2.png) [@Krivo](https://community.glideapps.com/u/Krivo)\
**Post date:** [May 15, 2022, 3:41pm UTC](https://community.glideapps.com/t/only-access-to-app-from-people-on-a-certain-domain/41984/2 "2022-05-15T15:41:22Z")

</div>

Ok - as I understand it now:

If you use **Role** in an app then your signing-in user becomes a private user.

I my example all signed-in users would therefor be private - so it seems as an app with just public users isn’t possible - and therefore the price would be way higher than a pro-app.

It is though still unclear to me whether it is possible to specify a domain as whitelisted users

It is also unclear to me if you can use roles together with public signing-in - seems to be that this is not possible.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [May 15, 2022, 11:34pm UTC](https://community.glideapps.com/t/only-access-to-app-from-people-on-a-certain-domain/41984/3 "2022-05-15T23:34:02Z")

</div>

> [@Krivo](#):
>
> It is though still unclear to me whether it is possible to specify a domain as whitelisted users

> [@Domain whitelist](https://community.glideapps.com/t/domain-whitelist/3940/2):
>
> I believe if you just create an email column with only ‘@domain.com’ in one of the rows, then that sheet can be used for whitelist and will include all emails within that domain.

I’m not sure it still works with the new plan, but this is the way to whitelist a domain in the old pricing scheme.

For your case though, would it be possible to set a role as the domain (using some backend manipulation to have the domain as a basic column) in both the users sheet and the images sheet? I would assume that would do the trick.
