# Access CMS user roles on client side

**URL:** <https://community.bloomreach.com/t/access-cms-user-roles-on-client-side/3336>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [August 14, 2022, 4:13pm UTC](https://community.bloomreach.com/t/access-cms-user-roles-on-client-side/3336 "2022-08-14T16:13:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![selva.manivasagam](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/selva.manivasagam/32/575_2.png) [@selva.manivasagam](https://community.bloomreach.com/u/selva.manivasagam)\
**Post date:** [August 14, 2022, 4:13pm UTC](https://community.bloomreach.com/t/access-cms-user-roles-on-client-side/3336/1 "2022-08-14T16:13:53Z")

</div>

Hi,

We have a requirement wherein users with certain roles shouldn’t be allowed to edit rich text editor content and we are thinking of using [Class Editor (CKEDITOR.editor) - CKEditor 4 API docs](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setReadOnly) to change the editor into read-only mode for these users.

Now, we need a way to get the current logged-in CMS user roles - are there any OOTB REST endpoint available to get user details ? Alternatively, are there any OOTB client-side libraries which could provide this ?

Thank you!

Cheers,  
Selva

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [August 15, 2022, 9:26am UTC](https://community.bloomreach.com/t/access-cms-user-roles-on-client-side/3336/2 "2022-08-15T09:26:29Z")

</div>

AFAIK there is no such endpoint. What you might try is [overriding](https://xmdocumentation.bloomreach.com/library/concepts/document-types/html-fields/ckeditor-plugins.html#ckeditor-plugin-that-opens-a-wicket-dialog) the CKEditorNodePlugin. In the part about adding a panel it mentions this. You don’t want to add a panel, but adjust the behavior of ckeditor. I haven’t tried any of this, but it is a place to start.
