|
From: Krzysztof B. <kb...@un...> - 2018-03-01 22:20:47
|
Dear Tim,
W dniu 01.03.2018 o 08:19, Tim Kreuzer pisze:
> Dear Krzysztof,
>
> i want to add new users with the REST API of Unity. While creating the
> user and move them to the right group is no problem, i have problems
> to set a credential. I am not sure about the JSON Object i have to add.
>
> What i do right now is:
>
> URL =
> '...rest-admin/v1/entity/train015/credential/train:password?identityType=userName'
>
> Header = {'Content-Type': 'application/json', 'Authorization': 'Basic
> nmVfdGUkbWluOmc4OWYrbyFFeG2mVHRtaEQlZ3RQ'}
>
I guess all you need is:
http://www.unity-idm.eu/documentation/unity-2.4.1/rest-api-v1.html#_set_credential_admin
(you are trying to set credential as a user, what is described in
subsequent section)
Best,
KB
|