# Generate User Last Activity Report

User last activity report helps network administrators view a user's activity by date and timestamp based on read and write actions of the users. This allows the administrator to identify active and inactive users.

Using this report, the administrator can also decide what action to take for these inactive users, such as hard deleting them or sending them a notification.

You need an admin account to generate the user's last activity report.

{% hint style="info" %}
When you set up the app for the first time in our portal, you will receive an administrator account. Alternatively, you can create an administrator account through the SP Console.
{% endhint %}

### Generating the Report

**Step 1**: Register the session using the Admin account

```
POST '{{URL}}/admin/v1/login'
--form 'username="XYZ"' \
--form 'password="*****"'
```

**Step 2**: Get admin cookies

**Step 3**: Export the user last activity report

```
GET '{{URL}}/admin/v1/reports/user-last-activity' \
--header 'Cookie: {{Cookie}}'
```

{% hint style="info" %}
You will need admin cookies to get this report.
{% endhint %}

**Step 4**: Get the list of user’s last activity report

> Depending on the tool you use, you can either query it as a list or export it as a CSV report.

If you have any questions, please contact our technical support at <support@social.plus>.&#x20;
