Activate User - Lagoon/LagoonSecurity-API GitHub Wiki

Activates an users account. Can only be used for disabled users which already where registered (have a password configured). As a result all information of the user is returned, including a list of his permissions (organized by profile - action - actionpoint).

GET /users/{user_id}/activate

If your application is configured to use contexts use:

GET /contexts/{cname}/users/{user_id}/activate

Parameters:

user_id: User Idendification

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** ⚠️