func (s *organizationService) SetOrganizationMember(
	ctx context.Context,
	organizationId string,
	userId string,
	organizationRole v1alpha1.OrganizationRole,
) (_ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	_, err := s.client.SetOrganizationMember(
		ctx,
		&v1alpha1.SetOrganizationMemberRequest{
			OrganizationId:   organizationId,
			UserId:           userId,
			OrganizationRole: organizationRole,
		},
	)
	if err != nil {
		return err
	}
	return nil
}
// SetOrganizationMember sets the role of a user in the organization.
SetOrganizationMember sets the role of a user in the organization.
// SetOrganizationMember sets the role of a user in the organization .
func (s *organizationService) SetOrganizationMember(
	ctx context.Context,
	organizationId string,
	userId string,
	organizationRole v1alpha1.OrganizationRole,
) (_ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	_, err := s.client.SetOrganizationMember(
		ctx,
		&v1alpha1.SetOrganizationMemberRequest{
			OrganizationId:   organizationId,
			UserId:           userId,
			OrganizationRole: organizationRole,
		},
	)
	if err != nil {
		return err
	}
	return nil
}
func ( s * organizationService ) SetOrganizationMember ( ctx context . Context , organizationId string , userId string , organizationRole v1alpha1 . OrganizationRole , ) ( _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } _ , err := s . client . SetOrganizationMember ( ctx , & v1alpha1 . SetOrganizationMemberRequest { OrganizationId : organizationId , UserId : userId , OrganizationRole : organizationRole , } , ) if err != nil { return err } return nil }
SetOrganizationMember sets the role of a user in the organization.
SetOrganizationMember sets the role of a user in the organization .