Is there any way to get user role (not user name)?

11.61K viewsScripting
0

Is there any way to get user role (not user name)? Probably it possible only with script. Any idea?

Tahir Answered question March 9, 2019
0

As I understand it, the main requirements in your question are that both roles work with the model at the same time, and at the same time do not see the extra information for them. I would have done so. Instead of one matrix M1{Ctg1[A, B], Ctg2[C, D, E]}, I would use two matrices related by Ctg2:
M1{Ctg1[A], Ctg2[C, D, E]} and
M2{Ctg3[B], Ctg2 [C, D, E]}. The M1 matrix is ​​for Role 1, and the M2 matrix is ​​for Role 2. The main advantages of this approach are:

  1. Role 1 and Role 2 work with different matrices at the same time without conflicting with each other and do not see the information that is not intended for them.
  2. Simplicity and speed of the implementation, no filters and scripts are needed. The standard tool is used to set the privileges of Role 1 and Role 2.

The way with scripts and filter’s expressions is fraught with errors and incompatibilities between current and future versions of QM and QQ.
Good luck.

braddo Posted new comment July 20, 2020

Thank you for your time and efforts! The whole idea was how to provide restricted access to parts of the same matrix for different users without duplicating matrix or view (especially important when you have many users). But it seems to be technically challenging and as you wrote prone to errors.

You are viewing 1 out of 11 answers, click here to view all answers.