Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ type User = {
id: string;
role: string;
}[];
has2faEnabled: boolean;
isFederatedUser: boolean;
};

export interface OrganizationUsersData {
Expand Down
14 changes: 14 additions & 0 deletions src/components/pages/organizations/users/UsersDataTableColumns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@ const UsersDataTableColumns = (
);
},
},
{
accessorKey: 'attrs',
header: 'Attributes',
cell: ({ row }) => {
const has2faEnabled = row.original?.has2faEnabled;
const isFederatedUser = row.original?.isFederatedUser
return (
<div className="flex flex-col gap-2">
{has2faEnabled && (<Badge variant="success">2FA</Badge>)}
{isFederatedUser && (<Badge variant="info">SSO</Badge>)}
</div>
);
},
},
{
id: 'actions',
header: 'Actions',
Expand Down
2 changes: 2 additions & 0 deletions src/lib/query/me.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export default gql`
lastUsed
keyFingerprint
}
has2faEnabled
isFederatedUser
}
}
`;
2 changes: 2 additions & 0 deletions src/lib/query/organizations/userByEmailAndOrganization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export default gql`
role
groupType
}
has2faEnabled
isFederatedUser
}
}
`;
2 changes: 2 additions & 0 deletions src/lib/query/organizations/usersByOrganization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export default gql`
id
role
}
has2faEnabled
isFederatedUser
}
}
`;