// you’re reading...


RQL Check if connected editor is in a user group


Within a plugin I want to check, if the normal editor running the plugin is within a specific RD user group. Because the editor did not have the ServerManager module assigned, the usual RQL request didn’t work:

<IODATA loginguid="[!guid_login!]">
    <GROUP guid="[!guid_group!]">
      <USERS action="list"/>

All RQL requests with <ADMINISTRATION> needs ServerManager module assigned to the user running the request.

What I’m looking for was a similar check which works under the limited rights of a normal editor/author and uses the usual group assignment possibilities of RD within ServerManager.


I found out, that the RQL request to list all content classes within a folder checks for the user’s right on the content classes.

So I created a content class with same name as user group name with a content class authorization package with that properties:

Everyone:  Use content class = deny
<user group name>: Use content class = allow

At the end I can check if the folder contains a template named equal to the <user group name> based on following RQL:

<IODATA loginguid="2A51E6531D1A4D02935BBCF4CD05A3EA" sessionkey="421138853e8oC524a665">
    <TEMPLATELIST action="load" folderguid="6A6740BC44F7459081BFD1F25B1BF8F6"/>
Share and Enjoy:
  • Print
  • email
  • Twitter
  • Digg
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • del.icio.us
  • MisterWong
  • Facebook
  • LinkedIn

No related posts.

About the author:

Frank lives in Hamburg, Germany and works as a web developer for Hapag-Lloyd AG.


2 comments for “RQL Check if connected editor is in a user group”

  1. The following will allow a user who does not have ServerManager permission to list the groups that a user is assigned to in the current logged on project:

    Posted by Jeff S. | August 31, 2009, 3:51 pm
  2. [forgot to escape the code]:

    <IODATA loginguid=”[!login_guid!]” sessionkey=”[!key!]“>
    <USER guid=”{1user_guid!]”>
    <GROUPS action=”list” />

    Posted by Jeff S. | August 31, 2009, 3:58 pm

Post a comment

Stay up to date! - Get notified about followup comments

If you don't feel the urge to comment but wish to stay in the loop:
Just enter your email and subscribe to new comments.

Subscribe without commenting

Recent Tweets

  • RT @AirKraft: Transport Canada breakout: they manage 80K pages and 300K assets with WSM(RedDot). Wow! #OTCW 2010-11-11
  • The RedDot usergroup session 'Future of WCM' is in National Harbor 7, now. See you there! #otcw 2010-11-11
  • RT @yttergren: @AirKraft: Calling all WSM(RedDot) devs: share your solutions on http://bit.ly/bgPIof EVERY solution can win an iPad #OTCW 2010-11-10
  • Come to the Solution Exchange session. Enhance your (#reddot) CMS project! Chesapeake 12, 3:20pm #otcw Looking forward to see you there! 2010-11-10
  • More updates...