|
Home > Archive > Microsoft Content Management Server > June 2004 > Knowing the Right Group of a logged user
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Knowing the Right Group of a logged user
|
|
| Elena 2004-06-27, 10:10 am |
| 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
| |
| Graeme 2004-06-28, 8:47 am |
| 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
|
|
|
|
|