开发者

Authorize users w.r.t assigned groups in ITIM

开发者 https://www.devze.com 2023-02-27 04:44 出处:网络
I am new to ITIM. I am working on an application in JAVA. I want to authorize users based on groups they are assigned to. How can I do that?

I am new to ITIM. I am working on an application in JAVA. I want to authorize users based on groups they are assigned to. How can I do that?

Is there any api that can fetch user roles/开发者_如何学Pythongroups by which I can authorize them?


The system user will have an attribute of ‘erroles’ through which we can get information of user groups/Roles.

Get DistinguishedName from Person object. Make PersonMO object having constructor like new PersonMO(platform, subject, person.getDistinguishedName());

Make new AccountManager(platform, subject);

This will give accounts collection accountManager.getAccounts(personMO, LocaleCreator.getLocale());

Get getSystemUserDN(userId);. PersonDao class will help in getting this.

Make new SystemUserMO(m_platform, m_subject, new DistinguishedName(systemUserDN));

Get the roles/Groups from systemUserMO.getData().getRoles()

Cheers Imran Tariq

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号