Legacy Notice: This extension is considered legacy and is scheduled for deprecation in the near future. It is no longer recommended for new integrations.Please note: Legacy extensions are no longer actively maintained and will not receive feature updates or enhancements.

Extension settings
- Login to CometChat and select your app.
 - Go to the Extensions section and enable the Report user extension.
 - Open the settings for this extension.
 - 
The settings page has the following:
- Moderation criteria: The max number of reports after which you want to be notified.
 - Moderation actions: Get the list of reports on the configured Webhook URL.
 
 

How does it work?
The extension has the following functionalities:- Allowing end-users to report other users.
 - Allowing admins to login to the Dashboard to take action on the reports.
 
1. Reporting a user
Users can be reported in either group conversations or one-on-one conversations. By clicking on the user’s avatar, you can show an item in the context menu called “Report”. Clicking on the “Report” button should open up a modal asking for the reason. Here’s the description of the parameters that need to be passed to the extension:| Parameters | Value | Description | 
|---|---|---|
| uid | String | The UID of the user that needs to be reported | 
| reason | String | Reason for reporting. This should be max 150 characters. | 
| guid | String | The GUID of the group in which the user is being reported.If the user is being reported in a one-on-one conversation, this can be skipped. | 
- JavaScript
 - Java
 - Swift
 
2. View reports and take action on a reported user

- Open up the Extension’s settings page
 - Click “View Reports” link. This will load all the reports.
 - 
Select the criteria from the dropdown:
- One-on-one conversations => Lists the users who have been reported in One-on-one conversations.
 - Group conversations => List the users who have been reported in a Group.
 - All reports => Lists all the reports.
 
 - 
The following actions can be taken for users reported in Group:
- Kick => Reported user is kicked out of the group.
 - Ban => Reported user is banned from the group.
 - Ignore => The report is ignored.
 
 - 
The following actions can be take for users reported in one-on-one conversations:
- Block => The reported user is blocked on behalf of the reporter.
 - Ignore => The report is ignored.
 
 - To load new reports, click on the Refresh button.