Tejesh,
This is more of an identity management problem. The Gluu Server is primarily an access management platform. Take a look at [this diagram](https://www.gluu.org/wp-content/uploads/2016/02/the_iam_building_blocks.pdf). The Gluu Server is focused on access management and directory services.
For a good open source identity management product, take a look at [Apache Syncope](https://syncope.apache.org/) and [Evolveum Midpoint](https://evolveum.com/midpoint/).
Thanks,
Will