diff --git a/src/scim/User.ts b/src/scim/User.ts index 5d903a2..2e0ea4a 100644 --- a/src/scim/User.ts +++ b/src/scim/User.ts @@ -23,8 +23,8 @@ export class SCIMUser implements ISCIMResource { user.userName = rc.username; user.meta.created = new Date(rc.createdAt); user.meta.lastModified = new Date(rc.createdAt); - if (user.active !== undefined) { - user.active = user.active; + if (rc.active !== undefined) { + user.active = rc.active; } return user; }