Hi,
If you want, you can create a Screen, built as a login. Show this screen first to your users. Then, you can create an Environment Variable, that has a comma separate list of all the domains that would identify someone as internal
Example: Environment Variable called
Internal Domains
Value: me.com,you.com,davis.com,etc.com
Now in your Login Screens OnVisible property you would read this Environment Variable and Split it by the , giving you a Collection with a Value property.
Or you can instead do a
ForAll(Split(MyVariable, ","),
Collect(MyDomains,
{
Domain: ThisRecord
}
)
);
Now you can take the persons email and split it by the @ sign. Take the [1] index of the returned value so
would turn into
michael <= [0]
me.com <= [1]
So
Now we want to check if that user is in our Internal list
If(CountRows(Filter(MyDomains, Domain = Split(User().Email, "@")[1]) > 0, then we know they are internal
They are internal,
They are not because there were not items in the collection with their domain
)
P.S. You could also store the data in a SharePoint config list, or a flat file, whatever you want, I just used an Environment Variable as a sample.
But now you know.