diff --git a/src/models/responses/ResponseUser.ts b/src/models/responses/ResponseUser.ts index 9ec729a..0927106 100644 --- a/src/models/responses/ResponseUser.ts +++ b/src/models/responses/ResponseUser.ts @@ -47,6 +47,13 @@ export class ResponseUser extends ResponsePrincipal { @IsString() email?: string; + /** + * The user's username. + * Optional. + */ + @IsString() + username?: string; + /** * is user enabled? */ @@ -81,6 +88,7 @@ export class ResponseUser extends ResponsePrincipal { this.lastname = user.lastname; this.phone = user.phone; this.email = user.email; + this.username = user.username; this.enabled = user.enabled; this.profilePic = user.profilePic; this.groups = user.groups;