# How to extend user resource with custom REST resource?

**URL:** <https://forum.keycloak.org/t/how-to-extend-user-resource-with-custom-rest-resource/22398>\
**Category:** Extending the server\
**Tags:** admin-rest\
**Created:** [May 30, 2023, 4:08pm UTC](https://forum.keycloak.org/t/how-to-extend-user-resource-with-custom-rest-resource/22398 "2023-05-30T16:08:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddushan123](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@ddushan123](https://forum.keycloak.org/u/ddushan123)\
**Post date:** [May 30, 2023, 4:08pm UTC](https://forum.keycloak.org/t/how-to-extend-user-resource-with-custom-rest-resource/22398/1 "2023-05-30T16:08:14Z")

</div>

I have successfully developed Keycloak custom REST resource by extending **/admin** URL as below.

`http://{host}/admin/realms/{realmId}/ext/users/{userId}/custom-path`

Now I’m looking for solution to extend this API without using **/ext** path as below.

`http://{host}/admin/realms/{realmId}/users/{userId}/custom-path`

Is there any way to achieve this by extending UserResource or using any other Keycloak extension providers ?
