From: Krzysztof B. <kb...@un...> - 2018-03-27 04:30:26
|
Hi Nikolaos, W dniu 26.03.2018 o 13:28, Nikolaos Evangelou pisze: > Hello Krzysztof, > > What I mean is when I register to b2access using my orcid account (through the form in web UI) and get entity information using the restAPI I get this response: > > { > "comparableValue": "XXXX-XXXX-XXXX-XXXX", > "confirmationInfo": { > "confirmationDate": 0, > "confirmed": false, > "sentRequestAmount": 0 > }, > "creationTs": 1518000192796, > "entityId": XXX, > "remoteIdp": "https://pub.orcid.org/oauth/token", > "translationProfile": "orcidProfile", > "typeId": "identifier", > "updateTs": 1518000192796, > "value": “XXXX-XXXX-XXXX-XXXX" > } > > Would it be possible to register a user using the restAPI instead of the web form? If so, how could I set the remote idp and the translation profile? > From what you wrote it seems that you want to create the "same" identity as the pasted one, and the problem is with setting the identity *metadata* remoteIdp and translationProfile, correct? If so then no, you can't set it via rest (and with anything else). Similarly as you can not set creationTs and updateTs. This is metadata about the identity, which is set automatically by Unity to provide context information mostly admin oriented about the origin of element. For instance if you create identity using rest call (or clicking in AdminUI) translation profile is not used so won't be set. HTH, Krzysztof |