Link a pending portal member to the local user with their email
A portal identity whose email a local user already has is still refused
on arrival. POST /cloud/members/{portal_sub}/link lets a superuser map it
onto that user, never a superuser's, after the portal confirms the
membership. GET /cloud/members marks such members linkable, and Admin →
Users offers "Link portal account" for them, saying that a linked user is
deleted with a removal at the portal or a Disconnect.
This commit is contained in:
@@ -3059,6 +3059,11 @@ export const PortalMemberSchema = {
|
||||
}
|
||||
],
|
||||
title: 'Local User Id'
|
||||
},
|
||||
linkable: {
|
||||
type: 'boolean',
|
||||
title: 'Linkable',
|
||||
default: false
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1049,6 +1049,7 @@ export type PortalMember = {
|
||||
user_id: string;
|
||||
email: string;
|
||||
local_user_id?: (string | null);
|
||||
linkable?: boolean;
|
||||
};
|
||||
|
||||
export type PrivateUserCreate = {
|
||||
@@ -1644,6 +1645,12 @@ export type CloudAddRemoteUserResponse = (UserPublic);
|
||||
|
||||
export type CloudReadMembersResponse = (Array<PortalMember>);
|
||||
|
||||
export type CloudLinkMemberData = {
|
||||
portalSub: string;
|
||||
};
|
||||
|
||||
export type CloudLinkMemberResponse = (UserPublic);
|
||||
|
||||
export type CloudRevokeMemberData = {
|
||||
portalSub: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user