The ManageOSUsers API employs Basic Authentication. To authenticate:
Encode your username and password in Base64 format.
Include the following header in your HTTP requests:
Authorization: Basic {Base64EncodedCredentials}
Replace {Base64EncodedCredentials} with your actual encoded credentials.
{Base64EncodedCredentials}
The API provides endpoints to manage users and groups. Below is a summary of the available operations:
Create User
Method: POST
POST
Endpoint: /ManageOSUsers/CreateUser
/ManageOSUsers/CreateUser
Description: Creates a new user with specified details.
Get User by Username
Method: GET
GET
Endpoint: /ManageOSUsers/GetUserByUsername/{username}
/ManageOSUsers/GetUserByUsername/{username}
Description: Retrieves user information based on the provided username.
Update User
Method: PUT
PUT
Endpoint: /ManageOSUsers/UpdateUser
/ManageOSUsers/UpdateUser
Description: Updates details of an existing user.
Delete User
Method: DELETE
DELETE
Endpoint: /ManageOSUsers/DeleteUser/{userId}
/ManageOSUsers/DeleteUser/{userId}
Description: Deletes the user with the specified ID.
Create Group
Endpoint: /ManageOSUsers/CreateGroup
/ManageOSUsers/CreateGroup
Description: Creates a new user group.
Get Group by Name
Endpoint: /ManageOSUsers/GetGroupByName/{groupName}
/ManageOSUsers/GetGroupByName/{groupName}
Description: Retrieves group information based on the provided name.
Update Group
Endpoint: /ManageOSUsers/UpdateGroup
/ManageOSUsers/UpdateGroup
Description: Updates details of an existing group.
Delete Group
Endpoint: /ManageOSUsers/DeleteGroup/{groupId}
/ManageOSUsers/DeleteGroup/{groupId}
Description: Deletes the group with the specified ID.
All API requests and responses use the JSON format.
jsonCopyEdit{ "Username": "jdoe", "Password": "SecurePass123", "Email": "jdoe@example.com", "FullName": "John Doe", "IsActive": true }
{ "Username": "jdoe", "Password": "SecurePass123", "Email": "jdoe@example.com", "FullName": "John Doe", "IsActive": true }
jsonCopyEdit{ "UserId": 101, "Status": "Success", "Message": "User created successfully." }
{ "UserId": 101, "Status": "Success", "Message": "User created successfully." }
The API returns standard HTTP status codes to indicate the success or failure of requests:
200 OK: Request succeeded.
400 Bad Request: The request was invalid or cannot be served.
401 Unauthorized: Authentication failed or user does not have permissions.
404 Not Found: The requested resource could not be found.
500 Internal Server Error: An error occurred on the server.
Error responses include a message detailing the issue.
OutSystems REST API Guide: Consume REST APIs