Unverified Commit 79549e8f authored by Mechiel Lukkien's avatar Mechiel Lukkien Committed by GitHub
Browse files

Clarify that organization.AddUser looks up user by email, not user id. (#612)

parent c10980f8
......@@ -284,7 +284,7 @@ func (a *OrganizationAPI) ListUsers(ctx context.Context, req *pb.ListOrganizatio
return &resp, nil
}
// AddUser creates the given organization-user link.
// AddUser creates the given organization-user link. The user is matched by email, not user id.
func (a *OrganizationAPI) AddUser(ctx context.Context, req *pb.AddOrganizationUserRequest) (*empty.Empty, error) {
if req.OrganizationUser == nil {
return nil, grpc.Errorf(codes.InvalidArgument, "organization_user must not be nil")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment