Get My Profiles
Retrieve all profiles associated with the logged-in user.Endpoint
Headers
Must be
application/jsonSession token provided by the
initSession endpointAuthorization string provided by the GLPI API configuration
Response
Array of all user profiles
Example
Get Active Profile
Retrieve the current active profile.Endpoint
Headers
Must be
application/jsonSession token provided by the
initSession endpointAuthorization string provided by the GLPI API configuration
Response
Profile name
Entities associated with the active profile
Example
Change Active Profile
Change the active profile to a different one.Endpoint
Headers
Must be
application/jsonSession token provided by the
initSession endpointAuthorization string provided by the GLPI API configuration
JSON Payload
ID of the new active profile. Use
getMyProfiles to get available profile IDs.Response
Returns an empty response body on success.Example
Status Codes
200 OK- Profile changed successfully400 Bad Request- Error in input parameters404 Not Found- Profile does not exist or is not usable by the current user
Notes
- This endpoint has write access to the session
- Only profiles returned by
getMyProfilescan be set as active - Changing the active profile affects permissions for subsequent API calls