Import User Enrollment Data
To import enrollment data for a user, the client must send a POST request to: /aims/rs/scim/v2/Users/<id>/EnrollmentData.
The server performs the following action: Add or update enrollment data for a user.
The enrollment data supersedes the user attributes for a device issuance. The format depends on the use case. For now, the only supported format is the PIV Card Production Request (see Configuring the CPR for details). This entry point allows uploading the XML file.
The possible HTTP status codes returned are:
-
204: No Content
-
400: Bad Request
-
401: Unauthorized
-
403: Forbidden
-
404: Not Found
Example request:
POST /aims/rs/scim/v2/Users/jdoe/EnrollmentData HTTP/1.1
Host: cms.mycompany.com
Accept: application/scim+json
Content-Type: application/octet-stream
Authorization: Bearer h480djs93hd8
Content-Length: ...
<hsp:CardRequest xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:hsp="http://www.activcard.com/hspd12/2006-02"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1.8"
xsi:schemaLocation="http://www.activcard.com/hspd12/2006-02 CPR%202.1.8.xsd">
<hsp:Header>
<hsp:Signers>
<hsp:Signer>
...
</hsp:Signer>
</hsp:Header>
<hsp:Body ID="Body">
<hsp:CardPersonalizationRequest>
...
</hsp:CardPersonalizationRequest>
</hsp:Body>
</hsp:CardRequest>
Example response:
HTTP/1.1 204