Authorization user updated
Type: object
Domain: audit
Event: auth_update_user
Version: 1
method required
Title: The operation HTTP method
Type: string
Example:
PUT
uri required
Title: The API operation URI
Type: string
Example:
/v1/users/:email
email required
Title: The operator email
Type: string
Example:
[email protected]
roles required
Title: The operator roles
Type: array
Example:[ "backoffice-operator", "crm-operator", "geroficios-operator", "inspetoria-master", "inspetoria-operator", "itibackoffice-master", "itinivel1-operator", "treasury-operator" ]
origin required
Title: The Origin Schema
Type: string
Example:
CRM
APP
object required
Title: The audit data message
Type: objectoldUser required
Title: The old User
Type: objectname required
Title: The old name user
Type: string
Example:
oldUserName
roles required
Title: The old user roles
Type: array
Example:[ "itibackoffice-operator", "crm-operator" ]
email required
Title: The old email
Type: string
Example:
[email protected]
user required
Title: The new user
Type: objectname required
Title: The new user name
Type: string
Example:
newUserName
roles required
Title: The new user roles
Type: array
Example:[ "crm-operator", "itinivel1-operator", "treasury-operator" ]
email required
Title: The new user email
Type: string
Example:
[email protected]
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "Authorization user updated",
"required": [
"method",
"uri",
"email",
"roles",
"origin",
"object"
],
"properties": {
"method": {
"type": "string",
"title": "The operation HTTP method",
"default": "",
"examples": [
"PUT"
]
},
"uri": {
"type": "string",
"title": "The API operation URI",
"default": "",
"examples": [
"/v1/users/:email"
]
},
"email": {
"type": "string",
"title": "The operator email",
"default": null,
"examples": [
"[email protected]"
]
},
"roles": {
"type": "array",
"title": "The operator roles",
"items": {
"type": "string",
"title": "The roles",
"default": "",
"examples": [
"backoffice-operator",
"crm-operator",
"geroficios-operator",
"inspetoria-master",
"inspetoria-operator",
"itibackoffice-master",
"itinivel1-operator",
"treasury-operator"
]
}
},
"origin": {
"type": "string",
"title": "The Origin Schema",
"default": "APP",
"examples": [
"CRM",
"APP"
]
},
"object": {
"type": "object",
"title": "The audit data message",
"required": [
"oldUser",
"user"
],
"properties": {
"oldUser": {
"type": "object",
"title": "The old User",
"required": [
"name",
"roles",
"email"
],
"properties": {
"name": {
"type": "string",
"title": "The old name user",
"default": "",
"examples": [
"oldUserName"
]
},
"roles": {
"type": "array",
"title": "The old user roles",
"items": {
"type": "string",
"title": "The roles",
"default": "",
"examples": [
"itibackoffice-operator",
"crm-operator"
]
}
},
"email": {
"type": "string",
"title": "The old email",
"default": "",
"examples": [
"[email protected]"
]
}
}
},
"user": {
"type": "object",
"title": "The new user",
"required": [
"name",
"roles",
"email"
],
"properties": {
"name": {
"type": "string",
"title": "The new user name",
"default": "",
"examples": [
"newUserName"
]
},
"roles": {
"type": "array",
"title": "The new user roles",
"items": {
"type": "string",
"title": "The roles",
"default": "",
"examples": [
"crm-operator",
"itinivel1-operator",
"treasury-operator"
]
}
},
"email": {
"type": "string",
"title": "The new user email",
"default": "",
"examples": [
"[email protected]"
]
}
}
}
}
}
}
}
{
"method": "PUT",
"uri": "/v1/users/:email",
"email": "[email protected]",
"roles": [
"backoffice-operator",
"crm-operator",
"geroficios-operator",
"inspetoria-master",
"inspetoria-operator",
"itibackoffice-master",
"itinivel1-operator",
"treasury-operator"
],
"origin": "CRM",
"object": {
"oldUser": {
"name": "oldUserName",
"roles": [
"itibackoffice-operator",
"crm-operator"
],
"email": "[email protected]"
},
"user": {
"name": "newUserName",
"roles": [
"crm-operator",
"itinivel1-operator",
"treasury-operator"
],
"email": "[email protected]"
}
}
}
Updated 2 days ago