Fetch process role of the current logged in user in RTC
2 answers
If you are the currently logged in user, open the project area you are interested in and have a look.
Browse for the project members search your ID and then have a look. Note, you can have multiple roles.
If you are not a member of the project area but have access, you have the Default role "Everyone".
If you are thinking about some different use case, you might want to be so kind as to share some more details of your thoughts than one sentence. Maybe this is a good education in this case: How should I ask a question in the Forum if I want to receive useful answers?
https://rsjazz.wordpress.com/2015/08/07/a-custom-condition-to-make-attributes-required-or-read-only-by-role-version-2/ also contains such code.
Please be more precise in your questions.