Skip to content

Example of adding user to group #1327

Closed Answered by thuan1412
thuan1412 asked this question in Q&A
Discussion options

You must be logged in to vote

Found the solution, I need to create a "member" relation where the subject is the "user1" and the object is the "group_a"

ory.CreateRelationshipBody{
  Namespace: &namespace,
  SubjectId: &user1,
  Relation:  &relationMember,
  Object:    &groupName,
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thuan1412
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant