User Action API
On this page
This page contains the APIs that are used for actioning users.
Refer to the User Actions guide for an overview of how to use User Actions.
Once you have created the User Actions, either via the Admin UI or the User Actions API, you use this API to invoke a User Action on a User.
Take an Action on a User#
This API is used to take a User Action on a User. User Actions are the method that FusionAuth uses to discipline, reward and interact with Users.
Request#
OpenAPI Spec
Request Headers#
X-FusionAuth-TenantIdThe unique Id of the tenant used to scope this API request.
The tenant Id is not required on this request even when more than one tenant has been configured because the tenant can be identified based upon other values in the request or it is otherwise not required.
Specify a tenant Id on this request when you want to ensure the request is scoped to a specific tenant. The tenant Id may be provided through this header or by using a tenant locked API key to achieve the same result.
See Making an API request using a Tenant Id for additional information.
Request Body#
action.actioneeUserId The Id of the User that is being actioned.
action.actionerUserId The Id of the User that is taking the action on the User.
action.applicationIds The list of Application ids that the action is being performed in.
action.comment The comment left by the actioner.
action.emailUser Whether FusionAuth should send an email to the User.
action.expiry The expiration instant of this User Action. This value is required for time-based User Actions.
To cause the action to be applied indefinitely, or until the action is canceled or modified, set this value to 9223372036854775807.
action.notifyUser The notifyUser flag that is passed along in any events FusionAuth sends to registered Webhooks.
action.option The User Action Option that the actioner selected.
action.reasonId The Id of the User Action Reason that the actioner selected.
action.userActionId The Id of the User Action that the actioner is performing on the User.
broadcastWhether or not FusionAuth will broadcast the User Action to any registered Webhooks.
eventInfoInformation about the request. FusionAuth adds the information to the events the request triggers, as event.info. For more information, see Pass Context From API Requests to Webhooks.
eventInfo.data An object that holds any JSON you choose, such as a trace Id. FusionAuth copies the object to event.info.data without changes.
eventInfo.deviceDescription A description of the end user's device.
eventInfo.deviceName The name of the end user's device.
eventInfo.deviceType The type of the end user's device.
eventInfo.ipAddress The IP address of the end user. When your server calls FusionAuth for the end user, set this value to the end user's IP address. When this value is omitted, FusionAuth uses the IP address of the client that sent the request.
eventInfo.os The operating system of the end user's device.
eventInfo.userAgent The user agent of the end user's browser.
{
"broadcast": true,
"action": {
"actioneeUserId": "00000000-0000-0000-0000-000000000001",
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is being a jerk",
"emailUser": true,
"expiry": 1471586483322,
"notifyUser": true,
"reasonId": "00000000-0000-0000-0000-000000000020",
"userActionId": "00000000-0000-0000-0000-000000000011"
}
}Response#
The response for this API contains the User Action along with any event and email information that was generated by FusionAuth.
| Code | Description |
|---|---|
| 200 | The request succeeded. The response contains a JSON body. |
| 400 | The request was invalid or malformed. The response contains an Errors JSON object with the specific errors. FusionAuth also returns a 400 when the request needs a paid FusionAuth license and no license is present. |
| 401 | FusionAuth didn't authorize the request. The Authorization header is missing, the API key isn't valid, or the API key doesn't have permission for this endpoint and method. The response is empty. For more information, see Unauthorized Responses. |
| 500 | FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response usually contains an Errors JSON object with the [Exception] general error code. On MySQL, a data field larger than the database column also returns 500. For more information, see Data Field Sizes. |
| 503 | The search index is unavailable or returned an error, so FusionAuth can't complete the request. The response contains a JSON body. |
| 504 | One or more webhook endpoints returned an invalid response or didn't respond. Because of the transaction configuration for the event, FusionAuth can't complete the request. FusionAuth logs a stack trace in the FusionAuth log files. |
Response Body#
action.actioneeUserId The Id of the User that was actioned.
action.actionerUserId The Id of the User that took the action on the User. If the action was initiated by FusionAuth this value will not be provided.
action.applicationIds This parameter if provided specifies the scope of the User Action. When an Action is scoped to one or more Applications the Application Ids will be provided in this parameter.
action.comment An optional comment provided when the Action was created, updated or canceled. This value will always be the last comment set on the action, see history for previous values.
action.emailUserOnEnd Whether FusionAuth will email the User when a time-based User Actions expires.
action.endEventSent Whether FusionAuth will send events when a time-based User Actions expires.
action.expiry The expiration instant of the User Action.
action.id The Id of the User Action record.
action.insertInstant The instant that the User Action was taken.
action.localizedOption The localized version of the User Action Option that was selected by the actioner.
action.localizedReason The localized version of the User Action Reason that was selected by the actioner.
action.notifyUserOnEnd Whether or not FusionAuth will send events to registered Webhooks when a time-based User Action expires.
action.option The non-localized version of the User Action Option that was selected by the actioner.
action.reason The non-localized version of the User Action Reason that was selected by the actioner.
action.reasonCode The User Action Reason code that was selected by the actioner.
action.userActionId The unique Id of the User Action. This Id can be used to retrieve the User Action using the Retrieve a User Action API.
{
"action": {
"actioneeUserId": "00000000-0000-0000-0000-000000000001",
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"applicationIds": [
"00000000-0000-0000-0000-000000000042",
"00000000-0000-0000-0000-000000000043"
],
"comment": "This user is being a jerk",
"createInstant": 1471786483322,
"emailUserOnEnd": false,
"endEventSent": false,
"expiry": 1471586483322,
"id": "00000000-0000-0000-0000-013500000002",
"insertInstant": 1595361142909,
"lastUpdateInstant": 1595361143101,
"localizedOption": "Lock account full",
"localizedReason": "Community rules infraction",
"event": {
"action": "Lock account full",
"actionId": "00000000-0000-0000-0000-000000000010",
"actioneeUserId": "00000000-0000-0000-0000-000000000001",
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is being a jerk",
"createInstant": 1471786483322,
"email": {
"from": {
"address": "support@fusionauth.io",
"display": "FusionAuth Support"
},
"html": "...",
"subject": "You account has been locked",
"text": "...",
"to": {
"address": "foo@bar.com",
"display": "Foo Jones"
}
},
"expiry": 1471586483322,
"localizedAction": "Lock account",
"localizedOption": "Lock account full",
"localizedReason": "Community rules infraction",
"notifyUser": false,
"option": "Lock account full",
"emailedUser": false,
"phase": "modify",
"reason": "Community rules infraction",
"reasonCode": "FRAC"
},
"notifyUserOnEnd": true,
"option": "Lock account full",
"reason": "Community rules infraction",
"reasonCode": "FRAC",
"userActionId": "00000000-0000-0000-0000-000000000010"
}
}Retrieve a Previously Taken Action#
This API is used to retrieve a User Action that was previously taken on a User, this can be thought of as the log or historical record.
Request#
OpenAPI Spec
Path Parameters#
actionIdThe unique Id of the Action to retrieve.
Request Headers#
X-FusionAuth-TenantIdThe unique Id of the tenant used to scope this API request.
The tenant Id is not required on this request even when more than one tenant has been configured because the tenant can be identified based upon other values in the request or it is otherwise not required.
Specify a tenant Id on this request when you want to ensure the request is scoped to a specific tenant. The tenant Id may be provided through this header or by using a tenant locked API key to achieve the same result.
See Making an API request using a Tenant Id for additional information.
OpenAPI Spec
Query Parameters#
userIdThe unique Id of the User for which to retrieve all of the Actions.
activeWhen this parameter is provided and set to true, only active actions will be returned. When this parameter is provided and set to false, only the inactive actions will be returned. When this parameter is omitted, all actions will be returned.
An active action is a time based action that has not yet expired or been canceled. An inactive action is either a time based action that has expired, canceled or an action that is not time based.
This parameter and preventingLogin are mutually exclusive.
preventingLoginWhen this value is provided and set to true, only active actions that are preventing the user from login will be returned. Omitting this parameter, or setting this parameter to false does not affect the API behavior.
This parameter and active are mutually exclusive because an action that is preventing login is always active.
Request Headers#
X-FusionAuth-TenantIdThe unique Id of the tenant used to scope this API request.
The tenant Id is not required on this request even when more than one tenant has been configured because the tenant can be identified based upon other values in the request or it is otherwise not required.
Specify a tenant Id on this request when you want to ensure the request is scoped to a specific tenant. The tenant Id may be provided through this header or by using a tenant locked API key to achieve the same result.
See Making an API request using a Tenant Id for additional information.
Response#
The response for this API contains either a single User Action Log or a list of User Actions Logs for a User. If you specified an actionId on the URI the response will contain the User Action Log for that Id. If you pass in a userId as a URL parameter the response will contain all of the User Action Logs for that User. Both responses are defined below along with an example JSON response.
| Code | Description |
|---|---|
| 200 | The request succeeded. The response contains a JSON body. |
| 400 | The request was invalid or malformed. The response contains an Errors JSON object with the specific errors. FusionAuth also returns a 400 when the request needs a paid FusionAuth license and no license is present. |
| 401 | FusionAuth didn't authorize the request. The Authorization header is missing, the API key isn't valid, or the API key doesn't have permission for this endpoint and method. The response is empty. For more information, see Unauthorized Responses. |
| 404 | The object you requested doesn't exist. The response is empty. |
| 500 | FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response is empty. |
| 503 | The search index is unavailable or returned an error, so FusionAuth can't complete the request. The response contains a JSON body. |
Response Body#
action.actioneeUserId The Id of the User that was actioned.
action.actionerUserId The Id of the User that took the action on the User. If the action was initiated by FusionAuth this value will not be provided.
action.applicationIds This parameter if provided specifies the scope of the User Action. When an Action is scoped to one or more Applications the Application Ids will be provided in this parameter.
action.comment An optional comment provided when the Action was created, updated or canceled. This value will always be the last comment set on the action, see history for previous values.
action.emailUserOnEnd Whether FusionAuth will email the User when a time-based User Actions expires.
action.endEventSent Whether FusionAuth will send events when a time-based User Actions expires.
action.expiry The expiration instant of the User Action.
action.history.historyItems The historical data for the User Action Log. Each time the User Action is modified or when the User Action is canceled a new historyItem is recorded.
action.history.historyItems[x].actionerUserId The Id of the User that took the modified (or created) the User Action.
action.history.historyItems[x].comment An optional comment provided when the Action was created, updated or canceled.
action.history.historyItems[x].createInstant The instant that this historical modification or creation was performed.
action.history.historyItems[x].expiry The instant that the User Action expired at previously.
action.id The Id of the User Action record.
action.insertInstant The instant that the User Action was taken.
action.localizedOption The localized version of the User Action Option that was selected by the actioner.
action.localizedReason The localized version of the User Action Reason that was selected by the actioner.
action.notifyUserOnEnd Whether or not FusionAuth will send events to registered Webhooks when a time-based User Action expires.
action.option The non-localized version of the User Action Option that was selected by the actioner.
action.reason The non-localized version of the User Action Reason that was selected by the actioner.
action.reasonCode The User Action Reason code that was selected by the actioner.
action.userActionId The unique Id of the User Action. This Id can be used to retrieve the User Action using the Retrieve a User Action API.
{
"action": {
"actioneeUserId": "00000000-0000-0000-0000-000000000001",
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"applicationIds": [
"00000000-0000-0000-0000-000000000042",
"00000000-0000-0000-0000-000000000043"
],
"comment": "This user is still being a jerk",
"createInstant": 1471786483322,
"emailUserOnEnd": false,
"endEventSent": false,
"expiry": 1471586483322,
"historyItems": [
{
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is still being a jerk",
"createInstant": 1471786433322,
"expiry": 1471496483322
}
],
"id": "00000000-0000-0000-0000-013500000002",
"insertInstant": 1595361142909,
"lastUpdateInstant": 1595361143101,
"localizedOption": "Lock account full",
"localizedReason": "Community rules infraction",
"notifyUserOnEnd": true,
"option": "Lock account full",
"reason": "Community rules infraction",
"reasonCode": "FRAC",
"userActionId": "00000000-0000-0000-0000-000000000010"
}
}Response Body#
actionsThe list of User Actions.
actions[x].actioneeUserId The Id of the User that was actioned.
actions[x].actionerUserId The Id of the User that was took the action on the User.
actions[x].applicationIds The list of Application ids that the action was performed in.
actions[x].comment The comment left by the actioner. This is the last User to touch the User Action (i.e. if the User Action was updated, this will be the comment left by the User that updated it).
actions[x].emailUserOnEnd Whether FusionAuth will email the User when a time-based User Actions expires.
actions[x].endEventSent Whether FusionAuth will send events when a time-based User Actions expires.
actions[x].expiry The expiration instant of the User Action.
actions[x].history.historyItems The historical data for the User Action. Each time the User Action is modified a new historyItem is added to the list.
actions[x].history.historyItems[x].actionerUserId The Id of the User that took the modified (or created) the User Action.
actions[x].history.historyItems[x].comment The message that the actioner added when they modified (or created) this User Action.
actions[x].history.historyItems[x].createInstant The instant that this historical modification or creation was performed.
actions[x].history.historyItems[x].expiry The instant that the User Action expired at previously.
actions[x].id The Id of the User Action.
action[x].insertInstant The instant that the User Action was taken.
actions[x].localizedOption The localized version of the User Action Option that was selected by the actioner.
actions[x].localizedReason The localized version of the User Action Reason that was selected by the actioner.
actions[x].notifyUserOnEnd Whether or not FusionAuth will send events to registered Webhooks when a time-based User Action expires.
actions[x].option The non-localized version of the User Action Option that was selected by the actioner.
actions[x].reason The non-localized version of the User Action Reason that was selected by the actioner.
actions[x].reasonCode The User Action Reason code that was selected by the actioner.
{
"actions": [
{
"actioneeUserId": "00000000-0000-0000-0000-000000000001",
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"applicationIds": [
"00000000-0000-0000-0000-000000000042",
"00000000-0000-0000-0000-000000000043"
],
"comment": "This user is still being a jerk",
"createInstant": 1471786483322,
"emailUserOnEnd": false,
"endEventSent": false,
"expiry": 1471586483322,
"historyItems": [
{
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is still being a jerk",
"createInstant": 1471786433322,
"expiry": 1471496483322
}
],
"id": "00000000-0000-0000-0000-013500000002",
"insertInstant": 1595361142909,
"lastUpdateInstant": 1595361143101,
"localizedOption": "Lock account full",
"localizedReason": "Community rules infraction",
"notifyUserOnEnd": true,
"option": "Lock account full",
"reason": "Community rules infraction",
"reasonCode": "FRAC",
"userActionId": "00000000-0000-0000-0000-000000000010"
}
]
}Update a Previously Taken Action#
This API is used to update a User Action that was previously taken on a User. User Actions are the method that FusionAuth uses to discipline, reward and interact with Users.
Request#
OpenAPI Spec
Path Parameters#
actionIdThe Id of the User Action being updated.
Request Headers#
X-FusionAuth-TenantIdThe unique Id of the tenant used to scope this API request.
The tenant Id is not required on this request even when more than one tenant has been configured because the tenant can be identified based upon other values in the request or it is otherwise not required.
Specify a tenant Id on this request when you want to ensure the request is scoped to a specific tenant. The tenant Id may be provided through this header or by using a tenant locked API key to achieve the same result.
See Making an API request using a Tenant Id for additional information.
Request Body#
action.actionerUserId The Id of the User that is taking the action on the User.
action.comment The comment left by the actioner.
action.emailUser Whether FusionAuth should send an email to the User.
action.expiry The expiration instant of this User Action. This is required for time-based User Actions.
action.notifyUser The notifyUser flag that is passed along in any events FusionAuth sends to registered Webhooks.
broadcastWhether or not FusionAuth will broadcast the User Action to any registered Webhooks.
eventInfoInformation about the request. FusionAuth adds the information to the events the request triggers, as event.info. For more information, see Pass Context From API Requests to Webhooks.
eventInfo.data An object that holds any JSON you choose, such as a trace Id. FusionAuth copies the object to event.info.data without changes.
eventInfo.deviceDescription A description of the end user's device.
eventInfo.deviceName The name of the end user's device.
eventInfo.deviceType The type of the end user's device.
eventInfo.ipAddress The IP address of the end user. When your server calls FusionAuth for the end user, set this value to the end user's IP address. When this value is omitted, FusionAuth uses the IP address of the client that sent the request.
eventInfo.os The operating system of the end user's device.
eventInfo.userAgent The user agent of the end user's browser.
{
"broadcast": true,
"action": {
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is still being a jerk",
"emailUser": true,
"expiry": 1471586483322,
"notifyUser": true
}
}Response#
The response for this API contains the User Action along with any event and email information that was generated by FusionAuth.
| Code | Description |
|---|---|
| 200 | The request succeeded. The response contains a JSON body. |
| 400 | The request was invalid or malformed. The response contains an Errors JSON object with the specific errors. FusionAuth also returns a 400 when the request needs a paid FusionAuth license and no license is present. |
| 401 | FusionAuth didn't authorize the request. The Authorization header is missing, the API key isn't valid, or the API key doesn't have permission for this endpoint and method. The response is empty. For more information, see Unauthorized Responses. |
| 404 | The object you're updating doesn't exist. The response is empty. |
| 500 | FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response usually contains an Errors JSON object with the [Exception] general error code. On MySQL, a data field larger than the database column also returns 500. For more information, see Data Field Sizes. |
| 503 | The search index is unavailable or returned an error, so FusionAuth can't complete the request. The response contains a JSON body. |
| 504 | One or more webhook endpoints returned an invalid response or didn't respond. Because of the transaction configuration for the event, FusionAuth can't complete the request. FusionAuth logs a stack trace in the FusionAuth log files. |
Response Body#
action.actioneeUserId The Id of the User that was actioned.
action.actionerUserId The Id of the User that took the action on the User. If the action was initiated by FusionAuth this value will not be provided.
action.applicationIds This parameter if provided specifies the scope of the User Action. When an Action is scoped to one or more Applications the Application Ids will be provided in this parameter.
action.comment An optional comment provided when the Action was created, updated or canceled. This value will always be the last comment set on the action, see history for previous values.
action.emailUserOnEnd Whether FusionAuth will email the User when a time-based User Actions expires.
action.endEventSent Whether FusionAuth will send events when a time-based User Actions expires.
action.expiry The expiration instant of the User Action.
action.history.historyItems The historical data for the User Action Log. Each time the User Action is modified or when the User Action is canceled a new historyItem is recorded.
action.history.historyItems[x].actionerUserId The Id of the User that took the modified (or created) the User Action.
action.history.historyItems[x].comment An optional comment provided when the Action was created, updated or canceled.
action.history.historyItems[x].createInstant The instant that this historical modification or creation was performed.
action.history.historyItems[x].expiry The instant that the User Action expired at previously.
action.id The Id of the User Action record.
action.insertInstant The instant that the User Action was taken.
action.localizedOption The localized version of the User Action Option that was selected by the actioner.
action.localizedReason The localized version of the User Action Reason that was selected by the actioner.
action.notifyUserOnEnd Whether or not FusionAuth will send events to registered Webhooks when a time-based User Action expires.
action.option The non-localized version of the User Action Option that was selected by the actioner.
action.reason The non-localized version of the User Action Reason that was selected by the actioner.
action.reasonCode The User Action Reason code that was selected by the actioner.
action.userActionId The unique Id of the User Action. This Id can be used to retrieve the User Action using the Retrieve a User Action API.
{
"action": {
"actioneeUserId": "00000000-0000-0000-0000-000000000001",
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"applicationIds": [
"00000000-0000-0000-0000-000000000042",
"00000000-0000-0000-0000-000000000043"
],
"comment": "This user is still being a jerk",
"createInstant": 1471786483322,
"emailUserOnEnd": false,
"endEventSent": false,
"expiry": 1471586483322,
"historyItems": [
{
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is still being a jerk",
"createInstant": 1471786433322,
"expiry": 1471496483322
}
],
"id": "00000000-0000-0000-0000-013500000002",
"insertInstant": 1595361142909,
"lastUpdateInstant": 1595361143101,
"localizedOption": "Lock account full",
"localizedReason": "Community rules infraction",
"notifyUserOnEnd": true,
"option": "Lock account full",
"reason": "Community rules infraction",
"reasonCode": "FRAC",
"userActionId": "00000000-0000-0000-0000-000000000010"
}
}Cancel a Previously Taken Action#
This API is used to cancel a User Action that was previously taken on a User. User Actions are the method that FusionAuth uses to discipline, reward and interact with Users.
Request#
OpenAPI Spec
Path Parameters#
actionIdThe Id of the User Action being canceled.
Request Headers#
X-FusionAuth-TenantIdThe unique Id of the tenant used to scope this API request.
The tenant Id is not required on this request even when more than one tenant has been configured because the tenant can be identified based upon other values in the request or it is otherwise not required.
Specify a tenant Id on this request when you want to ensure the request is scoped to a specific tenant. The tenant Id may be provided through this header or by using a tenant locked API key to achieve the same result.
See Making an API request using a Tenant Id for additional information.
Request Body#
action.actionerUserId The Id of the User that is taking the action on the User.
action.comment The comment left by the actioner.
action.emailUser Whether FusionAuth should send an email to the User.
action.expiry The expiration instant of this User Action. This is required for time-based User Actions.
action.notifyUser The notifyUser flag that is passed along in any events FusionAuth sends to registered Webhooks.
broadcastWhether or not FusionAuth will broadcast the User Action to any registered Webhooks.
eventInfoInformation about the request. FusionAuth adds the information to the events the request triggers, as event.info. For more information, see Pass Context From API Requests to Webhooks.
eventInfo.data An object that holds any JSON you choose, such as a trace Id. FusionAuth copies the object to event.info.data without changes.
eventInfo.deviceDescription A description of the end user's device.
eventInfo.deviceName The name of the end user's device.
eventInfo.deviceType The type of the end user's device.
eventInfo.ipAddress The IP address of the end user. When your server calls FusionAuth for the end user, set this value to the end user's IP address. When this value is omitted, FusionAuth uses the IP address of the client that sent the request.
eventInfo.os The operating system of the end user's device.
eventInfo.userAgent The user agent of the end user's browser.
{
"broadcast": true,
"action": {
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is behaving now",
"emailUser": true,
"notifyUser": true
}
}Response#
The response for this API contains the User Action along with any event and email information that was generated by FusionAuth.
| Code | Description |
|---|---|
| 200 | The request succeeded. |
| 400 | The request was invalid or malformed. The response contains an Errors JSON object with the specific errors. FusionAuth also returns a 400 when the request needs a paid FusionAuth license and no license is present. |
| 401 | FusionAuth didn't authorize the request. The Authorization header is missing, the API key isn't valid, or the API key doesn't have permission for this endpoint and method. The response is empty. For more information, see Unauthorized Responses. |
| 404 | The object you requested doesn't exist. The response is empty. |
| 500 | FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response is empty. |
| 503 | The search index is unavailable or returned an error, so FusionAuth can't complete the request. The response contains a JSON body. |
| 504 | One or more webhook endpoints returned an invalid response or didn't respond. Because of the transaction configuration for the event, FusionAuth can't complete the request. FusionAuth logs a stack trace in the FusionAuth log files. |
Response Body#
action.actioneeUserId The Id of the User that was actioned.
action.actionerUserId The Id of the User that took the action on the User. If the action was initiated by FusionAuth this value will not be provided.
action.applicationIds This parameter if provided specifies the scope of the User Action. When an Action is scoped to one or more Applications the Application Ids will be provided in this parameter.
action.comment An optional comment provided when the Action was created, updated or canceled. This value will always be the last comment set on the action, see history for previous values.
action.emailUserOnEnd Whether FusionAuth will email the User when a time-based User Actions expires.
action.endEventSent Whether FusionAuth will send events when a time-based User Actions expires.
action.expiry The expiration instant of the User Action.
action.history.historyItems The historical data for the User Action Log. Each time the User Action is modified or when the User Action is canceled a new historyItem is recorded.
action.history.historyItems[x].actionerUserId The Id of the User that took the modified (or created) the User Action.
action.history.historyItems[x].comment An optional comment provided when the Action was created, updated or canceled.
action.history.historyItems[x].createInstant The instant that this historical modification or creation was performed.
action.history.historyItems[x].expiry The instant that the User Action expired at previously.
action.id The Id of the User Action record.
action.insertInstant The instant that the User Action was taken.
action.localizedOption The localized version of the User Action Option that was selected by the actioner.
action.localizedReason The localized version of the User Action Reason that was selected by the actioner.
action.notifyUserOnEnd Whether or not FusionAuth will send events to registered Webhooks when a time-based User Action expires.
action.option The non-localized version of the User Action Option that was selected by the actioner.
action.reason The non-localized version of the User Action Reason that was selected by the actioner.
action.reasonCode The User Action Reason code that was selected by the actioner.
action.userActionId The unique Id of the User Action. This Id can be used to retrieve the User Action using the Retrieve a User Action API.
{
"action": {
"actioneeUserId": "00000000-0000-0000-0000-000000000001",
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"applicationIds": [
"00000000-0000-0000-0000-000000000042",
"00000000-0000-0000-0000-000000000043"
],
"comment": "This user is behaving now",
"createInstant": 1471786483322,
"emailUserOnEnd": false,
"endEventSent": false,
"expiry": 1471586483322,
"historyItems": [
{
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is being a jerk",
"createInstant": 1471786433322,
"expiry": 1471496483322
},
{
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is still being a jerk",
"createInstant": 1471786433322,
"expiry": 1471496483322
}
],
"id": "00000000-0000-0000-0000-013500000003",
"insertInstant": 1595361142909,
"event": {
"action": "Lock account full",
"actionId": "00000000-0000-0000-0000-000000000010",
"actioneeUserId": "00000000-0000-0000-0000-000000000001",
"actionerUserId": "00000000-0000-0000-0000-000000000002",
"comment": "This user is behaving now",
"createInstant": 1471786483322,
"email": {
"from": {
"address": "support@fusionauth.io",
"display": "FusionAuth Support"
},
"html": "...",
"subject": "You account has been unlocked",
"text": "...",
"to": {
"address": "foo@bar.com",
"display": "Foo Jones"
}
},
"expiry": 1471586483322,
"lastUpdateInstant": 1595361143101,
"localizedAction": "Lock account",
"localizedOption": "Lock account full",
"localizedReason": "Community rules infraction",
"notifyUser": false,
"option": "Lock account full",
"emailedUser": false,
"phase": "cancel",
"reason": "Community rules infraction",
"reasonCode": "FRAC"
},
"notifyUserOnEnd": true,
"option": "Lock account full",
"reason": "Community rules infraction",
"reasonCode": "FRAC",
"userActionId": "00000000-0000-0000-0000-000000000010"
}
}Related
API documentation for the FusionAuth Create a User Action API.
API documentation for the FusionAuth Delete a User Action API.
Learn about the APIs for creating, retrieving, updating and deleting user actions.
API documentation for the FusionAuth Reactivate a User Action API.