-
As my understand, an user is a subject, and a group of users is a subjectset. How can I add an user to a group using the Go SDK? I try the following way but it does not work. group := ory.SubjectSet{
Namespace: namespace,
Object: "group_a",
Relation: "member",
}
payload = ory.CreateRelationshipBody{
Namespace: &namespace,
SubjectId: &user1,
Relation: &relationMember,
SubjectSet: &group,
} |
Beta Was this translation helpful? Give feedback.
Answered by
thuan1412
May 14, 2023
Replies: 1 comment
-
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,
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
thuan1412
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found the solution, I need to create a "member" relation where the subject is the "user1" and the object is the "group_a"