ACL

SallaMbaye
Tera Contributor

Hello I am trying to write an acl where the current logged user can only read its own records. Can I do it without script ? If so how can i do it ?

1 ACCEPTED SOLUTION

Roshnee Dash
Tera Guru

Hi @SallaMbaye 

  1. Navigate to ACLs:

    • Go to System Security > Access Control (ACL).
  2. Create a New ACL:

    • Click New.
    • Choose the table you want to restrict (e.g., Incident, Task, or a custom table).
    • Set the Operation to read.
  3. Set the Condition:

    • In the Condition field, use a condition like:

      Created by is (dynamic) Me

      or

      Requested for is (dynamic) Me

      depending on your table structure.

    • The “(dynamic) Me” option is a built-in dynamic filter that automatically matches the current logged-in user.

  4. Leave Script Empty:

    • Do not check the Advanced checkbox.
    • Leave the Script field empty to avoid scripting.
  5. Save the ACL.

 

"Kindly mark this post as helpful or accept it as the solution if it resolved your issue."

Regards,
Roshnee

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash

View solution in original post

2 REPLIES 2

christophenow
Tera Expert

In "Data Condition" section of your Access Control record, use:

"your Ref field to user" "is" "javascript:gs.getUserID()"

or an alternative:

"your Ref field to user" "is (dynamic)" "Me".


Regards,

Roshnee Dash
Tera Guru

Hi @SallaMbaye 

  1. Navigate to ACLs:

    • Go to System Security > Access Control (ACL).
  2. Create a New ACL:

    • Click New.
    • Choose the table you want to restrict (e.g., Incident, Task, or a custom table).
    • Set the Operation to read.
  3. Set the Condition:

    • In the Condition field, use a condition like:

      Created by is (dynamic) Me

      or

      Requested for is (dynamic) Me

      depending on your table structure.

    • The “(dynamic) Me” option is a built-in dynamic filter that automatically matches the current logged-in user.

  4. Leave Script Empty:

    • Do not check the Advanced checkbox.
    • Leave the Script field empty to avoid scripting.
  5. Save the ACL.

 

"Kindly mark this post as helpful or accept it as the solution if it resolved your issue."

Regards,
Roshnee

Your feedback makes the community stronger! If you found this helpful, marking it as the correct answer helps others.
Stay awesome,
Roshnee Dash