I want to customize the list of activities returned by the Elsa API since each user should see different activities based on their permissions or context.
Is this feasible?
The API I want to customize:
Path:/elsa/api/descriptors/activities`
Method:GET
Result:
Endpoint:/elsa/api/descriptors/activities?userId={id}
Method:GET
Description: Retrieves the list of activity descriptors for the user with the specified `id`.
I want to customize the list of activities returned by the Elsa API since each user should see different activities based on their permissions or context.
Is this feasible?
The API I want to customize:
Path:/elsa/api/descriptors/activities`
Method:GET
Result:
Endpoint:/elsa/api/descriptors/activities?userId={id}
Method:GET
Description: Retrieves the list of activity descriptors for the user with the specified `id`.
Share
Improve this question
edited Feb 17 at 19:14
VLAZ
29.1k9 gold badges62 silver badges84 bronze badges
asked Feb 17 at 9:48
Trinh Nguyen Thi MaiTrinh Nguyen Thi Mai
11 bronze badge
1 Answer
Reset to default 0you'd want to limit what sections of the activities they can see. Basically, you can tailor what activities Elsa shows them based on their permissions. you'd have to make a Custom Activity Provider that checks who the user is and what permissions they have. Then, alter the part of Elsa that exports the list of activities it has access to so that it knows it should use your CAP and only present the user with activities they're allowed to have. Finally, tell Elsa to actually use this new device when it comes out. That way, everyone just gets to view what they should be viewing, so it stays safe and anized.