我正在 JAVA 应用程序中工作,并通过 ITIM api 对用户进行身份验证。如何通过ITIM api让群组与用户关联?
最佳答案
系统用户会有一个“erroles”属性,通过该属性我们可以获取用户组/角色的信息。
从Person对象获取DistinguishedName。
使 PersonMO 对象具有类似于 new PersonMO(platform, subject, person.getDistinguishedName());
创建新AccountManager(平台,主题);
这将提供帐户集合accountManager.getAccounts(personMO, LocaleCreator.getLocale());
获取getSystemUserDN(userId);。 PersonDao 类将有助于实现这一点。
创建new SystemUserMO(m_platform, m_subject, new DistinguishedName(systemUserDN));
从systemUserMO.getData().getRoles()获取角色/组
干杯 伊姆兰·塔里克
关于java - 与 ITIM 中的用户关联的组,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5731018/