Modify Visibility on a Record based on Group Membership

I would like to create a record of requests that must be approved by a supervisor group. I would like the basic users to only be able to view the requests they submitted but the supervisor group to see all requests that have been submitted by the basic user. Is there a way to do this? Thanks....

OriginalPostID-94404

OriginalPostID-94404

  Discussion posts and replies are publicly visible

Parents
  • If I'm understanding correctly, you want the list of viewable records to depend on the logged in user?

    Depending on your data structure, you could find a way to utilize the expressionable "default filter" component on your record. For example, set a default filter on the primary key, use the "in" operator and in the expression return a different list of request PK's based on the loggedInUser.

    EG, if(isUserMemberOfGroup(loggedInUser(),Supervisor Group),rule!getAllRequests.requestID,rule!getRequestsSubmittedByUser(loggedInUser().requestID)

    Hope that helps!
Reply
  • If I'm understanding correctly, you want the list of viewable records to depend on the logged in user?

    Depending on your data structure, you could find a way to utilize the expressionable "default filter" component on your record. For example, set a default filter on the primary key, use the "in" operator and in the expression return a different list of request PK's based on the loggedInUser.

    EG, if(isUserMemberOfGroup(loggedInUser(),Supervisor Group),rule!getAllRequests.requestID,rule!getRequestsSubmittedByUser(loggedInUser().requestID)

    Hope that helps!
Children
No Data