# 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;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/analytics-and-moderation/social+-apis-and-services/generate-user-last-activity-report.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
