how do i get the current domain of current user using scripts in ACL?

reeba1
Tera Contributor

Hello,

How do i get the current domain of current user using scripts in ACL? after i get the current domain, the users of sys_user table should be restricted, ie, the users whose domain is same as the current domain should only have the access.

How can i implement it using scripts in ACL? Can someone help me with this, with some example?

Regards,

Reeba

1 ACCEPTED SOLUTION

Can you try like,

 

find_real_file.png

 

Click on the search field in script and the select show related field and then expand the list and select Domain => Domain field and then again expand the list and select sys_id, like

 

find_real_file.png  find_real_file.png

find_real_file.png

View solution in original post

13 REPLIES 13

reeba1
Tera Contributor

Hello Dhruv,

Are you refering to the requirement of Visual task board, which i mentioned above?

Regards,

Reeba

Hi Reeb,

 

Yes you can use GlideRecord.

 

Regards

Ujjawal

AirSquire
Tera Guru

Yes about vtb and also for any other reference field. You cannot restrict data of a field by ACL normally we use reference qualifier for that in reference fields.

Regards
Dhruv

reeba1
Tera Contributor

Hello Dhruv,

Thankyou for your quick reply. 

In VTB , there is a table called Board Members, which has a field called user which stores the user who have been selected as board member, not the ones displayed in '+Add Members'. So I cannot use reference qualifier also. Do you think we should raise a HI ticket for this?  or is there some other way to resolve it?

Regards,

Reeba