Microsoft Content Management Server - Knowing User roles

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2004 > Knowing User roles





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

2004-06-28, 7:29 pm

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

Mark

2004-06-29, 3: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
>

Stefan [MSFT]

2004-06-29, 3: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...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

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:
>


Randall

2004-06-29, 8:57 am

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...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
> http://www.gotdotnet.com/community/...t+S
erver

> 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.
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com