Note |
---|
The ability to update a person via this endpoint has been deprecated. If you need to update a person, please refer to the Update a Person endpoint. |
Info |
---|
This Example Project demonstrates how to consume an older version this API endpoint within a Java project. |
Info |
---|
This Example Project demonstrates how to consume an older version of this API endpoint within a C# project. |
...
sendInvitation=[true|false]
default istrue
IfsendInvitation
is false, cardholders will not receive an email invitation.If sendInvitation is true (or not specified)
, the user's password will be reset, all previous login links will be deprovisioned, and an email invitation will be sent to the cardholder.
allowUpdate=
[true|false]
default isfalse
If allowUpdate is true and CloudCard finds a person with the same email address or identifier, CloudCard will update the person with the information contained in this request.getLoginLink=
[true|false]
default isfalse
If getLoginLink is true, the user's password will be reset, all previous login links will be deprovisioned, and a new link will be returned in the response.
Info |
---|
By default, this request results in an email being sent to the newly created user. If you don't want an email to be sent, you can use the |
...
Code Block | ||
---|---|---|
| ||
{ "email": "jon.doe@foo.edu", "identifier":"ABC123", "customFields":{ "Last_Name":"Card", "First Name":"Carry A", "Upload Date":"2017 - 06 - 22 11:17AM", "Batch":"1" } } |
Code Block | ||
---|---|---|
| ||
201 created
{
"accountExpired":false,
"accountLocked":false,
"activatedDate":null,
"authorities":[
{
"class":"com.campuscardtools.myphotoid.Role",
"id":3,
"authority":"ROLE_CARDHOLDER"
}
],
"currentPhoto":null,
"customFields":{
"Upload Date":{
"class":"com.campuscardtools.myphotoid.CustomFieldValue",
"id":3541,
"customField":{
"class":"com.campuscardtools.myphotoid.CustomField",
"id":34
},
"lastUpdated":"2017-06-26T20:00:47Z",
"person":{
"class":"com.campuscardtools.myphotoid.Person",
"id":123
},
"value":"2017 - 06 - 22 11:17AM"
},
"Last Name":null,
"First Name":{
"class":"com.campuscardtools.myphotoid.CustomFieldValue",
"id":3540,
"customField":{
"class":"com.campuscardtools.myphotoid.CustomField",
"id":31
},
"lastUpdated":"2017-06-26T20:00:47Z",
"person":{
"class":"com.campuscardtools.myphotoid.Person",
"id":123
},
"value":"Carry A"
},
"Batch":{
"class":"com.campuscardtools.myphotoid.CustomFieldValue",
"id":3542,
"customField":{
"class":"com.campuscardtools.myphotoid.CustomField",
"id":33
},
"lastUpdated":"2017-06-26T20:00:47Z",
"person":{
"class":"com.campuscardtools.myphotoid.Person",
"id":123
},
"value":"1"
}
},
"dateTermsAccepted":null,
"domainClass":"com.campuscardtools.myphotoid.Person",
"email":"john.doe@foo.edu",
"enabled":true,
"id":123,
"identifier":"ABC123",
"latestPhoto": null,
"links": {
"login": "https://app.onlinephotosubmission.com/#/login?access_token=lotsOfRandomLettersAndNumbersLotsOfRandomLettersAndNumbers"
},
"organization":{ ... },
"passwordExpired":false,
"passwordResetRequired":false,
"readOnly":false,
"username":"john.doe@foo.edu"
} |
Excerpt | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creating Login LinksOne frequent use case for this endpoint is to create and retrieve login links for a user, so they can be forwarded directly to CloudCard from another application witthout having to login again. This is described on the Single Sign-On page. This process works equally well for new or existing users. ProcessSubmit the following request
login.link field. |