How to get Security Level in validator class.

Suresh August 8, 2011

Hi All,

How to get the security Level and for that security Level assigned members and groups inside validator class.

what i need to do is if the login user not there in the level attribute i don't allow to create issue and giving

message to him like you are not there in level attribute.

Thanks

suresh.

2 answers

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 8, 2011

Um, you don't need to.

Security levels are based on attributes of a user (group, role, etc) which are exactly the same as the ones you get in permissions. You can simply use the same list of attributes you use in the security level as you use on the "create" permission. For example, if your security level X says "only people in group Y", then say "create permission = group Y" as well and you're done.

0 votes
Suresh August 9, 2011

Thanks Nic,

Ok,I have configured its working fine.I am asking for future if may require to get in validator class

then how we can get the details.

Best Regards,

Suresh.

Suggest an answer

Log in or Sign up to answer