Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay 7.3 restricting user creation based on email domain
Hi,
In liferay 7.3, if we want to restrict user creation based on email domain ex. Users with @gmail should not be created in portal, is this problem statement achieveable by any oob property. Currently in 7.0 we are using hooks to handle this part. But i am still looking for amy configuration, if available in 7.3
Thanks,
Jay
Workflow comes to my mind, where you can automate a step by checking for a user's email domain.
Alternatively a ServiceWrapper for UserLocalService that prevents the user from being created.
In both cases I'm not sure of the way the blocking is reported to the user - if you want to give them a proper human readable notification, you might need some extra UI work that detects these conditions and displays a proper error message.
Hi Olaf,
I tried service wrapper for solution an it worked.
Thanks for helping.