Knowing the Right Group of a logged user
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Knowing the Right Group of a logged user




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Knowing the Right Group of a logged user  
Elena


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-27-04 03:10 PM

Hi all, I would like to know if there is a way to know what is the
kind of MCMS User Role a logged user belongs.
For example, i created a User Groups my_editors of kind Editors MCMS
User Role, and I put in this group an user called for example
cmsEditor.
I would need to know if there is a way to get, by the name of the user
(cmsEditor), the MCMS User Role (Editors) the Group the Right Group
this user is part (my_editors) is of the kind of.

Thanks and regards

Elena





[ Post a follow-up to this message ]



    Re: Knowing the Right Group of a logged user  
Graeme


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-28-04 01:47 PM

Hi Elena,

As far as I can tell there is no way to do this through the MCMS API.
The workaround that we have been using is to:
1. Create a checks channel with subchannels corresponding to specific
user roles you wish to identify, in your case something like
Checks->my_editors
2. Change the permissions on this channel to allow the my_editors
group access to it.
3. To determine if a user belongs to the group in your code simply
test whether the currently logged in user is able to create a new
posting in this channel (using the CanCreatePostings method on the
channel object).

The only caveat is that this will not allow you to differentiate
between your my_editors user and a user belonging to the
Administrators group.

Hope this helps

Graeme


ELEMA.LO@terra.es (Elena) wrote in message news:<2fa48a0d.0406270630.2b103d61@posting.google
.com>...
> Hi all, I would like to know if there is a way to know what is the
> kind of MCMS User Role a logged user belongs.
> For example, i created a User Groups my_editors of kind Editors MCMS
> User Role, and I put in this group an user called for example
> cmsEditor.
> I would need to know if there is a way to get, by the name of the user
> (cmsEditor), the MCMS User Role (Editors) the Group the Right Group
> this user is part (my_editors) is of the kind of.
>
> Thanks and regards
>
> Elena





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register