Hi,
I'm using OS 11, reactive. In the app that I'm working on, there is a requirement to show the total number of internal & external users. How can I obtain the value of the domains listed in the Service Center?
I have tested a couple of apps from the forge but they do not seem to work. Does anyone know where can I obtain the value of that variable?
Thank you very much.
Only users registered with domain1, domain2 would be counted as Internal User, rest of will be external users.
You can make a timer, that will do this job as you know email ending with domain1 or domain2 will be Internal user. So, You can process the user table data by for loop that will determine the end user email is ending with domain1 or domain2 or not. If user email is ending with domain1 or domain2 then that user will be Internal user and you can increase your internal user count by 1.
Hope this help.
Regards,
Rahul kr.
Thank you for your reply. I'm trying to get the value of the variable that contains those two domains that where set in the Service Center. I would like to avoid using my own site variable, so that when an admin sets the value of the domains in Service Center, the app can automatically get those values, and there would be no need to set those values in my site var as well. Only setting them once.
Do you know how can I get the value of the variable that contains those two domains in Service Center?
Regards
Ulises
I am not sure there is method to get the user classification rules. Ya, you can keep those values in site properties, it will be good.
Thanks
As you have to register the domains for users that count as internal users in service center, you can use the same domains as filters on the email address of the Users entity. That would give you the number of internal users. The total external users would then be total users count minus internal user count.
Don't forget.to always include a filter Is_Active = True as only active users count towards user count on license.
Daniel
Correct, but first, I would like to get the domains that the administrator has registered in Service Center. So if the administrator changes those domains, the application can see that automatically without having to also change a site property for the app.
Thank you
I saw two Internal and External user classification from the OutSytems documents:
https://success.outsystems.com/documentation/11/developing_an_application/secure_the_application/end_users/classify_users_as_internal_users/
which depends on the confgiuration of 'Only users registered with these domains count as Internal'
and
https://success.outsystems.com/documentation/11/developing_an_application/secure_the_application/end_users/#internal-external
which says if the end user's email address uses a domain name that matches a domain that you own it will be classified as internal user.
Which rule takes precedence or the internal user count is the combination of all the rules?
It is the combination of both. The first link that you have explains it better. In the Administration -> licensing -> end-user configuration you have to select the radio button "Only users registered with these domains count as Internal ". In there you can add one or more domains that your company has.
All the users with emails that have the domains that are listed there will be counted as internal. All users that do not have an email address will count as internal as well.
Hope this helps.