Tags:
create new tag
view all tags

SID-00424: Show Users Groups

Status: Answered Answered TWiki version: 4.3.1 Perl version: 5.8.8
Category: CategoryPlugins Server OS: RedHat Linux, kernel 2.6.18 Last update: 16 years ago

Hello!

I'm planning to develop a plugin, where I'm able to read out the users web-groups.. The syntax should look like this: %SHOWGROUPS{Username}%

I know there are some variables available, to read from the environment variables, like USERINFO{ %group } and i like to use this code as base.

But i couldn't find anything in the twiki installation - perl codes. Has anyone an idea?

thanks

-- AlexBernegger - 2009-07-16

Discussion and Answer

Does this help?

%USERINFO{"%USERNAME%" format="$groups"}%

-- DavidCrompton - 2009-07-20

mhm but i think i need to call the systems environment variables first.

found a perl help, look like this: $ENV{'DOCUMENT_ROOT'}, or $ENV{'USERNAME'} there must have been such calls for our twiki installation too.

I will explain my idea a bit more precise:

we have a single sign on (SSO) system, where twiki users have to register first before they have access to their groups. we as the maintainer want to have a plugin, which shows us the users groups access for each user by typing in %ShowGroups{User}.

So i think for that i need to grab the information with the environment variables.

-- AlexBernegger - 2009-07-20

I think a search of the *Groups topics could do that.

From my reading here of what administrators want, I see more utility in a plugin that could generate a list of groups and users authorized to view and/or change a given topic.
Or to list the webs and/or topics than an individual can view and/or change.
IMHO.

-- SeanCMorgan - 2009-07-21

I think i have found it.

by using the lib: Environment.pm (TWiki/Configure/Checkers) I am able to read from the Environment Variables in my Plugin.

So im now able to give back any detailed Information about an user.

I will write it to a proper program and upload it then to the PlugIn Section. In the Dev part we can talk about enhancements.

Thanks for your help.

-- AlexBernegger - 2009-07-21

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Show Users Groups
SupportCategory CategoryPlugins
TWiki version 4.3.1
Server OS RedHat Linux, kernel 2.6.18
Web server Apache 2.2.11
Perl version 5.8.8
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2009-07-21 - AlexBernegger
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.