|
Home > Archive > Microsoft Content Management Server > April 2006 > Getting 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 |
Getting user roles
|
|
| InNeedOfHelp 2006-04-27, 7:27 am |
| Is it possible to get a users rights group (such as the name of the group
that the user belongs to within Autors, for instance) and role in code?
I am working on a web site that is using CMS 2002. Part of the
functionality of the site that was custom written is allowing users that
belong to different rights group under Authors to add company's events. I
want change this so events are entered through a datagrid. I'd like to
maintain the relationship between the user and the events they enter. I need
a way to filter events so that only the users from the same rights group as
the user who added the event are able to access it.
Thanks
| |
| Stefan [MSFT] 2006-04-27, 7:27 am |
| Hi,
unfortunatelly MCMS does not expose this in it's API.
There is no supported method to achieve this with MCMS API.
For this reason we recommend not to store users directly in MCMS rights
groups but to have one AD/NT group per rights group and to add the users to
this AD/NT group.
This will allow you to use ADSI to query to members of the associated AD/NT
group rather than the MCMS rights group.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"InNeedOfHelp" <InNeedOfHelp@discussions.microsoft.com> wrote in message
news:8A09BDC2-242F-4AEA-80FC-9D5CF0540A1F@microsoft.com...
> Is it possible to get a users rights group (such as the name of the group
> that the user belongs to within Autors, for instance) and role in code?
>
> I am working on a web site that is using CMS 2002. Part of the
> functionality of the site that was custom written is allowing users that
> belong to different rights group under Authors to add company's events. I
> want change this so events are entered through a datagrid. I'd like to
> maintain the relationship between the user and the events they enter. I
> need
> a way to filter events so that only the users from the same rights group
> as
> the user who added the event are able to access it.
>
> Thanks
| |
| InNeedOfHelp 2006-04-27, 7:27 am |
| Will I be able to identify which users have authoring rights and which users
have administrative rights? The way it is currently working when a person
creates a new event it has to be ratified by an administrator before it is
posted so I will need to be able to tell what a users role is.
Thanks
"Stefan [MSFT]" wrote:
> Hi,
>
> unfortunatelly MCMS does not expose this in it's API.
> There is no supported method to achieve this with MCMS API.
>
> For this reason we recommend not to store users directly in MCMS rights
> groups but to have one AD/NT group per rights group and to add the users to
> this AD/NT group.
>
> This will allow you to use ADSI to query to members of the associated AD/NT
> group rather than the MCMS rights group.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "InNeedOfHelp" <InNeedOfHelp@discussions.microsoft.com> wrote in message
> news:8A09BDC2-242F-4AEA-80FC-9D5CF0540A1F@microsoft.com...
>
>
>
|
|
|
|
|