Knowing User roles
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 User roles




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

    Knowing User roles  
Randall


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


 
06-29-04 12:29 AM

Hi all,

Is there a way to know about the user and their roles?
I want to know whether a logged user is an administrator or not.

Please guide me.

Randall






[ Post a follow-up to this message ]



    RE: Knowing User roles  
Mark


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


 
06-29-04 08:09 AM

My understanding is that you cannot get get the roles associated with a user
 from the PAPI. You can only tell whether they CanApprove etc.

"Randall" wrote:

> Hi all,
>
> Is there a way to know about the user and their roles?
> I want to know whether a logged user is an administrator or not.
>
> Please guide me.
>
> Randall
>





[ Post a follow-up to this message ]



    Re: Knowing User roles  
Stefan [MSFT]


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


 
06-29-04 08:10 AM

That is correct.

A workaround would be to implement a channel structure like the following

/Channels
/HelperChannel
/Administrators
/ChannelManagers
/Editors
/Moderators
/Authors
/Subscribers

Then assign all channel manager groups to the ChannelManagers channel, all
Editors to the Editors channel, ...
If you now use the searches object to retrieve one of the channel you can
identify if the current user has this role by testing if you receive an
object or not.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Mark" <Mark@discussions.microsoft.com> wrote in message
news:779C91DE-1425-4FBC-B87C-2F91AF3344C9@microsoft.com...
> My understanding is that you cannot get get the roles associated with a
user from the PAPI. You can only tell whether they CanApprove etc.[vbcol=seagreen]
>
> "Randall" wrote:
> 







[ Post a follow-up to this message ]



    Re: Knowing User roles  
Randall


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


 
06-29-04 01:57 PM

Thanks Mark and Stefan


"Stefan [MSFT]" wrote:

> That is correct.
>
> A workaround would be to implement a channel structure like the following
>
> /Channels
>     /HelperChannel
>         /Administrators
>         /ChannelManagers
>         /Editors
>         /Moderators
>         /Authors
>         /Subscribers
>
> Then assign all channel manager groups to the ChannelManagers channel, all
> Editors to the Editors channel, ...
> If you now use the searches object to retrieve one of the channel you can
> identify if the current user has this role by testing if you receive an
> object or not.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
> MCMS FAQ:
> http://download.microsoft.com/downl...
a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
> http://www.gotdotnet.com/community/...nagement+Server
> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "Mark" <Mark@discussions.microsoft.com> wrote in message
> news:779C91DE-1425-4FBC-B87C-2F91AF3344C9@microsoft.com... 
> user from the PAPI. You can only tell whether they CanApprove etc. 
>
>
>





[ 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