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
How to assign user to a organization while they create an account by them?
Hi
I am using LR 6.1 CE using Oracle on Windows 7 OS.
I have created two organization and corresponding sites for them.
Then I have created some users and assigned organizations for them.
I am using CustomLandingPage Hook to show the corresponding organization site pages.
If a user created an account by themselves using the "Create Account" link in the Login portlet, I have observed when they log in, they are not getting organization home page or organization site, because the organization is not assigned to them.
I would like to request advice on how to make the user assigned to an organization when then create an account.
Thanks in advance,
Dinesh
I am using LR 6.1 CE using Oracle on Windows 7 OS.
I have created two organization and corresponding sites for them.
Then I have created some users and assigned organizations for them.
I am using CustomLandingPage Hook to show the corresponding organization site pages.
If a user created an account by themselves using the "Create Account" link in the Login portlet, I have observed when they log in, they are not getting organization home page or organization site, because the organization is not assigned to them.
I would like to request advice on how to make the user assigned to an organization when then create an account.
Thanks in advance,
Dinesh
I think what you need to do is . first create organization and make one site into that organization .. then go to portal settings -> Users -> default User associations and then enter the default site name (Here your organization site name) in "Sites" field. Now When new user get sign up user will have default organization that you want.
Hope it is what you want..
Regards,
Rahul
Hope it is what you want..
Regards,
Rahul
Hi Rahul,
Thanks for your guidance.
I have followed your mentioned steps. But when I create the new user he is not been assigned that default organization.
Do you have idea. What I have done wrong?
Regards,
Dinesh
Thanks for your guidance.
I have followed your mentioned steps. But when I create the new user he is not been assigned that default organization.
Do you have idea. What I have done wrong?
Regards,
Dinesh
If it is not solving issue then you probably have to go for hook .. You can make hook for sign up .. where you may set organization id to new user during sign up..
Hi Rahul,
Thanks for your guidance. I'll look on to it.
Please be in touch.
Cheers,
Dinesh
Thanks for your guidance. I'll look on to it.
Please be in touch.
Cheers,
Dinesh