Click here to Skip to main content
11,719,973 members (84,684 online)
Click here to Skip to main content

MCMS User Roles

, 15 Mar 2005 38.7K 862 18
Rate this:
Please Sign up or sign in to vote.
Finding MCMS user by role.

Sample Image - userroles.jpg

Introduction

MCMS API doesn't provide any way to get the user groups (role relevant) for channels/postings. It may be useful in certain places if we can get the users who have certain rights. Also, there is no way by which we can distinguish a Moderator and an Editor. So, I thought of writing a class library which can be used for this purpose.

MCMS User Roles API

  • GetAuthors - to get the author collection for a given Channel.
  • GetEditors - to get the editors collection for a given Channel.
  • GetModerators - to get the moderators collection for a given Channel.
  • GetChannelManagers - to get the channel managers collection for a given Channel.
  • GetTemplateDesigners - to get the template designers for a given Channel.
  • IsAuthor - to check whether a given person is an author.
  • IsEditor - to check whether a given person is an editor.
  • IsModerator - to check whether a given person is a moderator.
  • IsChannelManager - to check whether a given person is a channel designer.
  • IsResourceManager - to check whether a given person is a resource manager.
  • IsTemplateDesigner - to check whether a given person is a template designer.

Configuration

dataConfiguration.config file must be modified to point out the MCMS database name and server name.

<parameter name="database" value="" isSensitive="false" />
<parameter name="server" value="" isSensitive="false" />

And the App.config file must contain the data which is provided with the class library.

Summary

Even though it works fine for me, please do check before using this. Because this is a direct database change, you must be very careful before using this.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

N.B: Unfortunately, direct access to the MCMS database without using the MCMS publishing API breaks the Microsoft Support Boundaries for MCMS. So, if you are interested in using Microsoft Support, please don't use this.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Chester Ragel
Web Developer
Singapore Singapore
No Biography provided

You may also be interested in...

Comments and Discussions

 
QuestionMCMS Pin
bala2011sg27-Jun-13 16:19
memberbala2011sg27-Jun-13 16:19 
QuestionHow to use this samle in a webform Pin
jrpgomes2-Nov-05 6:25
memberjrpgomes2-Nov-05 6:25 
AnswerRe: How to use this samle in a webform Pin
Chester Ragel7-Nov-05 5:53
memberChester Ragel7-Nov-05 5:53 
GeneralRe: How to use this samle in a webform Pin
deepakbadki18-Jan-06 1:52
memberdeepakbadki18-Jan-06 1:52 
GeneralRe: How to use this samle in a webform Pin
jedliu20466-Mar-07 20:20
memberjedliu20466-Mar-07 20:20 
AnswerRe: How to use this samle in a webform Pin
jedliu20466-Mar-07 20:11
memberjedliu20466-Mar-07 20:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150901.1 | Last Updated 16 Mar 2005
Article Copyright 2005 by Chester Ragel
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid