To add a permission for a User, coupling him to a ...
# general
c
To add a permission for a User, coupling him to a Group, which of the 2 is the right syntax?
Copy code
{
    "namespace": "Group",
    "object": "0a8c8b76-0b2d-4274-a070-ea7abc33497e",
    "relation": "owners",
    "subject_id": "dcf481d7-9740-47ea-ae0c-4155120dc8a9"
  },
or
Copy code
{
  "namespace": "Group",
  "object": "0a8c8b76-0b2d-4274-a070-ea7abc33497e",
  "relation": "owners",
  "subject_set": {
    "namespace": "User",
    "object": "dcf481d7-9740-47ea-ae0c-4155120dc8a9"
  }
}
b
both would work. I personally prefer the subject set since it is more explicit.
c
Okido! thanks