Register User - Lagoon/LagoonSecurity-API GitHub Wiki

Registers a password for a newly created user (activation token) and activates his account. To register the user, hist activation token (returned on creation of the user) and password are needed. Returns the enabled user and a list of his permissions (organized by profile - action - actionpoint).

POST /users/register

If your application is configured to use contexts use:

POST /contexts/{cname}/users/register

Input Example:

{
   *"token":"7fcebcdeb9f84a329d84ef56d11ee89a1343212496121",
   *"password": "pass" 
}

Output Example:

{
     "id": 13,
     "enable": true,
     "ghost": false,
     "login": "user",
     "name": "User",
     "email": "[email protected]",
     "profiles": [{
         "id": 16,
         "name": "admin",
         "description": "adminProfile",
         "actions": {
            "Users": ["reactivate", "deactivate", "show", "activate", "index"],
            "Application": ["index"],
            "Apps": ["show"],
            "Contexts": ["show", "update", "index", "delete", "edit", "save", "create"],
            "Permissions": ["index"]
        }
    }]
}
⚠️ **GitHub.com Fallback** ⚠️