Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

remove permissions from response

Thiago Araujo da Silva57e8db1b56bb
diff --git a/backend/src/server/routes/v2/identity-router.ts b/backend/src/server/routes/v2/identity-router.ts
index cd8ed0ca4e..2944037021 100644
--- a/backend/src/server/routes/v2/identity-router.ts
+++ b/backend/src/server/routes/v2/identity-router.ts
@@ -25,7 +25,6 @@ const roleSchema = z.object({
customRoleName: z.string().nullable().optional(),
customRoleSlug: z.string().nullable().optional(),
customRoleDescription: z.string().nullable().optional(),
- customRolePermissions: z.unknown().nullable().optional(),
isTemporary: z.boolean(),
temporaryMode: z.string().nullable().optional(),
temporaryRange: z.string().nullable().optional(),
diff --git a/backend/src/services/identity/identity-org-dal.ts b/backend/src/services/identity/identity-org-dal.ts
index a5f85ece48..99e20dcaee 100644
--- a/backend/src/services/identity/identity-org-dal.ts
+++ b/backend/src/services/identity/identity-org-dal.ts
@@ -939,7 +939,6 @@ export const identityOrgDALFactory = (db: TDbClient) => {
.select(db.ref("name").as("crName").withSchema(TableName.Role))
.select(db.ref("slug").as("crSlug").withSchema(TableName.Role))
.select(db.ref("description").as("crDescription").withSchema(TableName.Role))
- .select(db.ref("permissions").as("crPermission").withSchema(TableName.Role))
.select(
lastLoginFallbackRaw("lastLoginTime", "lastLoginTime"),
lastLoginFallbackRaw("lastLoginAuthMethod", "lastLoginAuthMethod")
@@ -1050,7 +1049,6 @@ export const identityOrgDALFactory = (db: TDbClient) => {
crName,
crSlug,
crDescription,
- crPermission,
isTemporary,
temporaryMode,
temporaryRange,
@@ -1063,7 +1061,6 @@ export const identityOrgDALFactory = (db: TDbClient) => {
customRoleName: crName ?? null,
customRoleSlug: crSlug ?? null,
customRoleDescription: crDescription ?? null,
- customRolePermissions: crPermission ?? null,
isTemporary,
temporaryMode,
temporaryRange,
diff --git a/frontend/src/hooks/api/identities/types.ts b/frontend/src/hooks/api/identities/types.ts
index bd771d7afd..473adfdde7 100644
--- a/frontend/src/hooks/api/identities/types.ts
+++ b/frontend/src/hooks/api/identities/types.ts
@@ -988,7 +988,6 @@ export type IdentityMembershipSearchRole = {
customRoleName?: string | null;
customRoleSlug?: string | null;
customRoleDescription?: string | null;
- customRolePermissions?: unknown;
isTemporary: boolean;
temporaryMode?: string | null;
temporaryRange?: string | null;