授权用户在ITIM中分配组

| 我是ITIM的新手。我正在使用JAVA开发应用程序。我想根据分配给他们的组来授权用户。我怎样才能做到这一点? 是否有可以获取用户角色/组以对其进行授权的api?
已邀请:
系统用户将具有“错误”属性,通过该属性我们可以获取用户组/角色的信息。 从Person对象获取DistinguishedName。使PersonMO对象具有类似
new PersonMO(platform, subject, person.getDistinguishedName());
的构造函数 赚
new AccountManager(platform, subject);
这将使帐户收集
accountManager.getAccounts(personMO, LocaleCreator.getLocale());
获取getSystemUserDN(userId);。 PersonDao类将帮助您实现这一目标。 使
new SystemUserMO(m_platform, m_subject, new DistinguishedName(systemUserDN));
systemUserMO.getData().getRoles()
获取角色/组 干杯伊姆兰·塔里克(Imran Tariq)

要回复问题请先登录注册