向新用户授予对组织页面的访问权限 [英] Giving access to organization pages to new user

查看:54
本文介绍了向新用户授予对组织页面的访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我正在使用的Web应用程序中,

In the web application I'm working,

  • 我创建了一个组织站点,group/game/home可以访问.
  • 登录后,我已将此默认登录页面设为默认页面.通过将此值放入portal-ext.properties文件default.landing.page.path=/group/games/home
  • 我还设置了这两个属性,以确保成功登录后将用户重定向到默认登录页面. layout.show.portlet.access.denied=false auth.login.url=/web/guest/login
  • I've created an organization site which can be accessed by group/game/home.
  • I've made this default landing page after login. By putting this value in the portal-ext.properties file default.landing.page.path=/group/games/home
  • I've also set these two properties to make sure the user is redirected to the default landing page after successfully login. layout.show.portlet.access.denied=false auth.login.url=/web/guest/login

现在,当我向该应用程序添加新用户时,该用户已成功创建.

Now, when I add a new user to the application, the user is created successfully.

但是,由于未将用户添加到组织中,因此它无权访问默认登录页面.

But, since the user is not added to the organization, it doesn't have right to access the default landing page.

我必须通过管理面板手动登录,然后转到控制面板>用户和组织,然后更新关联.

I have to manually login through admin panel and go to control panel > User and Organisation and then Update Association.

有人可以帮助我了解在创建用户时是否可以做到这一点?可以吗?

Can someone please help me understand if this can be done at the time of user creation? Is it doable?

注意

我正在使用Liferay 6.2,Ankit P的建议对我有用.

I'm using Liferay 6.2, Ankit P's suggestion worked for me.

如果任何人使用的是早期版本,请参考Prakash K的建议.

If anyone is using earlier version, Please refer to Prakash K's suggestion.

推荐答案

您可以默认从 Liferay v6.2 + 开始的UI中设置此关联.

You can set this association by default from UI starting from Liferay v6.2+.

  1. 以管理员身份登录并导航到
  2. 控制面板门户设置用户(配置中)→选择默认用户关联
  3. 添加所需的组织名称并保存.
  1. Login as administrator and navigate to
  2. Control PanelPortal SettingsUsers (Under Configuration) → Select Default User Associations
  3. Add your desired Organization Name and Save.

创建用户后,此设置将自动将用户与该特定组织相关联.

This setting will automatically associate Users to that particular organization when Users are created.

您还可以勾选Apply to Existing Users复选框,以更新已在数据库中创建的用户的关联,在这种情况下,当用户在此设置后首次登录系统时,该用户即已关联.

You can also tick the Apply to Existing Users checkbox to update the association for Users already created in database, the User in this case associated when the User logs in to the system first time after this setting.

希望有帮助!

这篇关于向新用户授予对组织页面的访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆