Hello,
my question is, there's a property in an ItemType that can be input or edited by certain identity (for example, property "Tester" can only be assigned by a Test manager, but can not be filled by other roles, only viewable to others)
Permission settings is feasible only for ItemType as whole, how should I do configuration for certain item properties?
Thank you for the reply.
Regards
Hi Chenze,
There are a few different ways to approach this.
You could convert this from an Item Property into a Relationship and then configure the permissions of the relationship to allow adding only by a Test manager
Cons: This does require changing the existing data model and moving data to this new relationship
Pros: This could make sense if an item can have multiple Testers
Attach on onFormPopulated event to the Form to check if the user is a Test Manager and disable the property if they are not
You can use aras.getIdentityList(); to get a comma separated list of IDs of the Identities the user belongs to
Pros: No changes to the data model
Cons: Only prevents users from editing the property on that specific form. Users can still edit the property through other means like AML
Chris
Christopher Gillis
Aras Labs Software Engineer
Hi Chenze,
There are a few different ways to approach this.
You could convert this from an Item Property into a Relationship and then configure the permissions of the relationship to allow adding only by a Test manager
Cons: This does require changing the existing data model and moving data to this new relationship
Pros: This could make sense if an item can have multiple Testers
Attach on onFormPopulated event to the Form to check if the user is a Test Manager and disable the property if they are not
You can use aras.getIdentityList(); to get a comma separated list of IDs of the Identities the user belongs to
Pros: No changes to the data model
Cons: Only prevents users from editing the property on that specific form. Users can still edit the property through other means like AML
Chris
Christopher Gillis
Aras Labs Software Engineer