---
Title: People list component
Added: v2.0.0
Status: Active
Last reviewed: 2019-01-14
---
# People List Component
Shows a list of users (people).

## Basic Usage
Populate the users in the component class:
```ts
import { LightUserRepresentation } from '@alfresco/js-api';
export class SomeComponent implements OnInit {
people: LightUserRepresentation[] = [
{
id: 1,
email: 'john.doe@alfresco.com',
firstName: 'John',
lastName: 'Doe'
},
{
id: 2,
email: 'jane.doe@alfresco.com',
firstName: 'Jane',
lastName: 'Doe'
}
];
onClickPeopleRow(user: LightUserRepresentation) {
console.log('Clicked row: ', user);
}
onClickPeopleAction($event: Event) {
console.log('Clicked action: ', $event);
}
}
```
You can use column templates with the [people list component](people-list.component.md), since it is based on the
[Datatable component](../../core/components/datatable.component.md):
```html
{{entry.row.obj.firstName + ' ' + entry.row.obj.lastName}}
{{ entry.row.obj.email }}
```
## Class members
### Properties
| Name | Type | Default value | Description |
|---------|-----------------------------|---------------|-------------------------------------------------------------------------------|
| actions | `boolean` | false | Toggles whether or not actions should be visible, i.e. the 'Three-Dots' menu. |
| users | `LightUserRepresentation[]` | | The array of user data used to populate the people list. |
### Events
| Name | Type | Description |
|-------------|-----------------------------------------|----------------------------------------------------------------------------|
| clickAction | `EventEmitter` | Emitted when the user clicks in the 'Three Dots' drop down menu for a row. |
| clickRow | `EventEmitter` | Emitted when the user clicks a row in the people list. |