List pending uid and gid changes (admin only)
const url = 'https://example.com/api/admin/nss/pending-id-changes';const options = {method: 'GET', headers: {'X-Ssoossh-Key-Secret': '<X-Ssoossh-Key-Secret>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/admin/nss/pending-id-changes \ --header 'X-Ssoossh-Key-Secret: <X-Ssoossh-Key-Secret>'Every NSS account and group whose directory entry now gives a stored uid or gid a different value. Hosts keep being served the stored value until an admin accepts the change (after re-owning files on the hosts) or the directory reverts; the server raises nss.id_change_pending daily meanwhile. Oldest first.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The pending changes
object
object
object
object
PendingSince is the first sync that saw the pending value.
PendingUID and PendingGID are the directory’s values, absent when that number has not changed.
UID and GID are the stored values, still served. GID is absent when the entry has no gid attribute (accepted only under nss.auto_private_groups “true”).
Example generated
{ "data": { "groups": [ { "dn": "example", "gid": 1, "name": "example", "pending_gid": 1, "pending_since": "example" } ], "users": [ { "dn": "example", "gid": 1, "name": "example", "pending_gid": 1, "pending_since": "example", "pending_uid": 1, "uid": 1 } ] }, "error": "example"}Not authenticated
object
Data is always null on an error response.
Error is a human-readable message. Branch on the HTTP status rather than this string; it is for humans and logs.
ErrorCode is a machine-readable error classifier. One of the error_code constants from internal/apitypes; use this to decide whether to retry or branch on the failure mode.
Example
{ "error": "certificate request \"9f1c…\" not found", "error_code": "not_found"}Not authorized as admin
object
Data is always null on an error response.
Error is a human-readable message. Branch on the HTTP status rather than this string; it is for humans and logs.
ErrorCode is a machine-readable error classifier. One of the error_code constants from internal/apitypes; use this to decide whether to retry or branch on the failure mode.
Example
{ "error": "certificate request \"9f1c…\" not found", "error_code": "not_found"}NSS is disabled
object
Data is always null on an error response.
Error is a human-readable message. Branch on the HTTP status rather than this string; it is for humans and logs.
ErrorCode is a machine-readable error classifier. One of the error_code constants from internal/apitypes; use this to decide whether to retry or branch on the failure mode.
Example
{ "error": "certificate request \"9f1c…\" not found", "error_code": "not_found"}