# Importing users from API

**URL:** <https://forum.keycloak.org/t/importing-users-from-api/4584>\
**Category:** Extending the server\
**Created:** [August 31, 2020, 7:28am UTC](https://forum.keycloak.org/t/importing-users-from-api/4584 "2020-08-31T07:28:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sroup](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@sroup](https://forum.keycloak.org/u/sroup)\
**Post date:** [August 31, 2020, 7:28am UTC](https://forum.keycloak.org/t/importing-users-from-api/4584/1 "2020-08-31T07:28:29Z")

</div>

Hello,

I have an existing set of users, with their corresponding credentials (stored in a similar format to keycloak, with pbkdf2).  
How can I import them with the admin API ?  
The CredentialRepresentation object now has many deprecated fields, and the only accessible field is ‘value’. So how do I provide the hash, and the hash algorithm and its configuration (salt, hash iterations, …) ?

Thanks
