Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

Índice
outlinetrue

English (US)

Users


Service used to register, change and remove users from Ahgora PontoWeb.


Aviso
titleAlert

Batch sending allowed, maximum 1000 records per request, or 1mb (mega)


Users

Item

Description

Flow:Client → PontoWeb
Route:https://api.ahgora.com.br/users
Method:POST
Users
FieldTypeRequiredDescriptionRules
emailStringYesUser's e-mailCampo chave
nomeStringYesUser's name
perfilStringYesName of the profile to be assigned to the user
perfilNovoStringYes*Name of the new profile to be assigned to the user*Optional, send only when you want to change the user profile, informing in this field the new profile to be assigned.
localizacaoArrayNoLocation linked to the user
removerStringYes*Field to remove the User*Add the REMOVE parameter to remove the user
The field can also be sent blank
login_samlStringYes*Username for SSO

*Mandatory for SSO users


Requests examples:


Request Body - Inclusion:

Bloco de código
languagetext
themeEmacs
linenumberstrue
collapsetrue
[
  {
    "email": "[email protected]",
    "perfil": "Administrador",
    "localizacao": [
      "Human Resources","Fabrica1"
    ],
    "login_saml": "[email protected]",
    "nome": "John Doe"
  }
]


Request Body - Profile Change:

Bloco de código
languagetext
themeEmacs
linenumberstrue
collapsetrue
[
  {
    "email": "[email protected]",
    "perfil": "Administrador",
    "localizacao": [
      "Human Resources"
    ],
    "login_saml": "[email protected]",
    "nome": "John Doe",
    "perfilNovo": "Apontador"
  }
]


Request Body - Exclusion:

Bloco de código
languagetext
themeEmacs
linenumberstrue
collapsetrue
[
  {
    "email": "[email protected]",
    "perfil": "Administrador",
    "localizacao": [
      "Human Resources"
    ],
    "login_saml": "[email protected]",
    "nome": "John Doe",
    "remover": "REMOVER"
  }
]


Response examples:


Response when SUCCESS - Code 200:

Bloco de código
languagetext
themeEmacs
linenumberstrue
collapsetrue
{
  "company": "a000101",
  "unique": "bd751350",
  "subunique": "c01de0cc",
  "message": "User´s Integration on progress"
}
Dica
titletip

For more details, use the Process service. To find out more, click here.


Validation ERROR - Code 400:

Bloco de código
languagetext
themeEmacs
linenumberstrue
collapsetrue
{
  "error": {
    "message": "Request format must be an Array",
    "code": 400
  }
}


Authentitcation ERROR - Code 401:

Bloco de código
languagetext
themeEmacs
linenumberstrue
collapsetrue
{
  "company": "a000101",
  "unique": "bd751350",
  "subunique": "c01de0cc",
  "message": "User´s Integration on progress"
}


Permission ERROR - Code 403:

Bloco de código
languagetext
themeEmacs
linenumberstrue
collapsetrue
{
    "error": {
        "message": "Forbidden",
        "code": 403
    }
}

Note: Check the user's permissions to access the route/service.