# Entity validation script in multi-group instance

**URL:** <https://community.openbis.ch/t/entity-validation-script-in-multi-group-instance/211>\
**Category:** Developments\
**Tags:** multi-group\
**Created:** [6 July 2023 13:11 UTC](https://community.openbis.ch/t/entity-validation-script-in-multi-group-instance/211 "2023-07-06T13:11:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Viktoria](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@Viktoria](https://community.openbis.ch/u/Viktoria)\
**Post date:** [6 July 2023 13:11 UTC](https://community.openbis.ch/t/entity-validation-script-in-multi-group-instance/211/1 "2023-07-06T13:11:51Z")

</div>

Hello everyone.

First of all: We are searching for a script. Or another way to manage our problem for a multi-group instance.

For some object types (e.g. samples in an inventory collection) we need property types with unique ID number similar to the code, however only for some groups of a multi-group instance. The other groups would also use these object types, however do not need unique values. We would like to handle this with an “Entity validation script”. The script should contain something like a limitation which enables to select a certain group for which the script is functional.

Thank you  
Viktoria

---

<div class="post-metadata">

**Author:** ![juanf](https://dub1.discourse-cdn.com/flex013/user_avatar/community.openbis.ch/juanf/32/18_2.png) [@juanf](https://community.openbis.ch/u/juanf)\
**Post date:** [7 July 2023 11:10 UTC](https://community.openbis.ch/t/entity-validation-script-in-multi-group-instance/211/2 "2023-07-07T11:10:17Z")

</div>

Dear Viktoria,

openBIS has internally the feature to mark a particular property assignment to have unique values.

Sadly this is not exposed yet on the current release. We will try to add it on a minor update, maybe for 20.10.8.

On the meantime the only way of having unique property values is to have something like a validator, or even better an interceptor:

[https://unlimited.ethz.ch/pages/viewpage.action?pageId=132286253](https://unlimited.ethz.ch/pages/viewpage.action?pageId=132286253)

Best,  
Juan

---

<div class="post-metadata">

**Author:** ![Viktoria](https://avatars.discourse-cdn.com/v4/letter/v/df705f/32.png) [@Viktoria](https://community.openbis.ch/u/Viktoria)\
**Post date:** [10 July 2023 10:08 UTC](https://community.openbis.ch/t/entity-validation-script-in-multi-group-instance/211/3 "2023-07-10T10:08:29Z")

</div>

Dear Juan,

thank you for the fast response. We are looking forward to the new update.  
However, what about multi-group instances? Will the new feature mark the property to have unique values for all groups or is there a group-specific adjustment?

Best,  
Viktoria

---

<div class="post-metadata">

**Author:** ![juanf](https://dub1.discourse-cdn.com/flex013/user_avatar/community.openbis.ch/juanf/32/18_2.png) [@juanf](https://community.openbis.ch/u/juanf)\
**Post date:** [11 July 2023 08:21 UTC](https://community.openbis.ch/t/entity-validation-script-in-multi-group-instance/211/4 "2023-07-11T08:21:07Z")

</div>

Is per property assignment to a type.

If the type is used by more than one group they will be all affected.
