You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/usermanagement/client.go
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -125,9 +125,12 @@ type OrganizationMembership struct {
125
125
// The ID of the Organization.
126
126
OrganizationIDstring`json:"organization_id"`
127
127
128
-
// The role given to this Organization Membership
128
+
// The role given to this Organization Membership or priority role if multiple roles are assigned.
129
129
Role common.RoleResponse`json:"role"`
130
130
131
+
// All roles for the Organization Membership
132
+
Roles []common.RoleResponse`json:"roles"`
133
+
131
134
// The Status of the Organization.
132
135
StatusOrganizationMembershipStatus`json:"status"`
133
136
@@ -491,15 +494,23 @@ type CreateOrganizationMembershipOpts struct {
491
494
// The ID of the Organization in which to add the User as a member.
492
495
OrganizationIDstring`json:"organization_id"`
493
496
494
-
// The slug of the Role in which to grant this membership. If no RoleSlug is given, the default role will be granted.
497
+
// The slug of the Role in which to grant this membership. If no RoleSlug is given, the default role will be granted. Mutually exclusive with RoleSlugs.
495
498
// OPTIONAL
496
499
RoleSlugstring`json:"role_slug,omitempty"`
500
+
501
+
// The slugs of the Roles in which to grant this membership. Mutually exclusive with `role_slug`. Limited to one role when Multiple Roles is disabled.
502
+
// OPTIONAL
503
+
RoleSlugs []string`json:"role_slugs,omitempty"`
497
504
}
498
505
499
506
typeUpdateOrganizationMembershipOptsstruct {
500
507
// The slug of the Role to update to for this membership.
501
508
// OPTIONAL
502
509
RoleSlugstring`json:"role_slug,omitempty"`
510
+
511
+
// The slugs of the Roles to update this membership to. Mutually exclusive with `role_slug`. Limited to one role when Multiple Roles is disabled.
0 commit comments