Creates a new user (agent/collaborator) in the system. Requires SITE_ADMIN:WRITE permission and RS:ADMIN_CREATE right.
Password requirements (RGPD):
- Length: 12-40 characters
- Must contain: uppercase, lowercase, digit, special character
Agency assignment: The agency_id is the user's primary agency. Use agencies_list to grant access to additional agencies.
User types: Use GET /users/types to discover available types (e.g. Négociateur, Gestionnaire, etc.).
Groups: Use GET /users/groups to discover available groups (determines access level and permissions within the agency).
User email address. Must be unique across the site. Used for login and notifications.
User password. Must meet RGPD requirements:
- Length: 12-40 characters
- Must contain: uppercase, lowercase, digit, special character
Primary agency ID for the user. Must be within the authenticated site's scope.
Additional agency IDs the user has access to (multi-agency access). Each must be within the site scope.
[ 123, 456 ]
Permission group ID. Determines access level. Use GET /users/groups to discover available groups.
- Mock serverhttps://api-doc.immo-facile.com/_mock/openapi/users
- https://v2.immo-facile.com/api/v2/sitehttps://v2.immo-facile.com/api/v2/site/users
curl -i -X POST \
https://api-doc.immo-facile.com/_mock/openapi/users \
-H 'Authorization: Bearer <YOUR_opaque_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"firstname": "Marie",
"lastname": "Martin",
"email": "marie.martin@agence.fr",
"password": "S3cur3P@ss!2026",
"status": 1,
"agency_id": 123,
"group_id": 2,
"gender": "f",
"phone": "+33498765432",
"mobile_phone": "+33698765432",
"user_types": [
1
]
}'