I have a taxonomy vocabulary, Groups.
Requirements
- Different users can create groups with the same name. (User A can make an
apples
group, and User B can also make anapples
group.) - The same user cannot make two groups with the same name (User A cannot make two
apples
groups.)
How can I implement this?
D8/9 offers a field constraint as explained in this answer and this blog post, but this makes a field unique for all users.
I want to make the taxonomy term name unique per user. Also, this needs to work with JSON:API. How can I do this?