|
Home > Archive > Microsoft Content Management Server > July 2005 > How to Find the Role of a 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 |
How to Find the Role of a User
|
|
|
| I need to find out how to determine the role of a particular user (whether
author, editor, or moderator). I figure I can separate author from this
group by the CanApprovePosting being false, but how would I separate the
moderator from the editor? Is there something easier for me to find out the
roles?
Thanks.
Scott
| |
| Stefan [MSFT] 2005-07-08, 2:48 am |
| Hi Scott,
MCMS does not provide a way to do this.
But you can workaround this:
- create a channel and assign all editor rights groups to the channel.
Nothing else
- create a channel and assing all moderator rights groups to the channel.
Nothing else
Then do a GetByPath to these two channels and check if the search returns an
object or not. If it returns an object then the user is either an
administrator or it is in the desired role.
To separate out administrators use the method described here:
http://blogs.technet.com/stefan_gos.../10/406175.aspx
Cheers,
Stefan
"Scott" <Scott@discussions.microsoft.com> schrieb im Newsbeitrag
news:CD9D0BCD-F23A-477E-8BE5-378FAFBC0509@microsoft.com...
>I need to find out how to determine the role of a particular user (whether
> author, editor, or moderator). I figure I can separate author from this
> group by the CanApprovePosting being false, but how would I separate the
> moderator from the editor? Is there something easier for me to find out
> the
> roles?
>
> Thanks.
>
> Scott
|
|
|
|
|