掲示板

Assign user to site programmatically

thumbnail
6年前 に Bharamani P Tashildar によって更新されました。

Assign user to site programmatically

Junior Member 投稿: 48 参加年月日: 14/08/27 最新の投稿
Hi All,

How to assign user to site programmatically in Liferay Dxp?

Users are coming from Ldap to Liferay, after login I need to assign these users to site.


How can I achieve this?

Please help!!
thumbnail
6年前 に Christoph Rabel によって更新されました。

RE: Assign user to site programmatically (回答)

Liferay Legend 投稿: 1554 参加年月日: 09/09/24 最新の投稿
If it's the same site for all users, you could do it by configuration:
Control Panel -> Instance Settings -> Users -> Tab Default User Associations

You can add default associations for all users there.
Or if you need to do it by group, then you could import ldap groups too and assign the groups to the sites where they belong as members.
3年前 に habeeb shaik によって更新されました。

RE: Assign user to site programmatically

New Member 投稿: 2 参加年月日: 20/07/01 最新の投稿
while selecting site for user, it is loading for some time and then it come "gateway timeout error"
thumbnail
3年前 に Olaf Kock によって更新されました。

RE: Assign user to site programmatically

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
habeeb shaik:

while selecting site for user, it is loading for some time and then it come "gateway timeout error"

Gateway timeout is typically an error that your reverse proxy signals before it can reach any application server that it's expected to serve. You'll have to figure out why: Wrong URL, server died, conditional proxying, network issues, cluster setup problems - could be anything
3年前 に habeeb shaik によって更新されました。

RE: Assign user to site programmatically

New Member 投稿: 2 参加年月日: 20/07/01 最新の投稿
Thank you for you help