Is there an easy way to determine a user's role for the given space? I am looking into implementing some custom permission logic which would allow me to prevent a user from having read permissions on any document created by another user with the same role.
For instance, UserA is a Contributor in my space, and creates DocumentA.
UserB, who is also a Contributor logs in and enters the space. I would like them to not see DocumentA.
I didn't want to use explicitly denied permissions because this needs to happen automatically, and it shouldn't be up to the user creating the content to have to do this.
Any thoughts?
Thanks,
Brad