Tags:
create new tag
, view all tags

Question

Hello,

I'm french speaking, so sorry for my english. I look for how can I get with function search(formatted search?)list of all users separed by comma like this: user1, user2, user3 .....,usern

I need this because i want to do access control to my webs and to do that i want to first deny web change and web rename to all users on my webs and then allow access only for a few number of users that i want.

sorry again for my english.

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: linux debian(testing) kernel version 2.4.22-i-386
Web server: apache 1.3.31
Perl version: perl 5.6.1
Client OS: Windows xp
Web Browser: Internet Explorer
Categories:  

-- MamadiFofana - 17 Nov 2004

Answer

You can get the list with this search:

%SEARCH{ ".*" scope="topic" web="%MAINWEB%" type="regex" nosearch="on" nototal="on" format="[[$web.$topic][$topic]]" separator=", " }%

Which expands to this: (here restricted to all Z* users because TWiki.org has so many)

ZHLeoLi, ZaahidBharmal, ZacAlfonsoBrady, ZacCraven, ZacGowen, ZacGowenLeftBar, ZachCopley, ZachCrawford, ZachFrey, ZachGarner, ZachGrieshop, ZachHensley, ZachJohnson, ZachKupta, ZachLoch, ZacharyCrowell, ZacharyHamm, ZacharyKoziol, ZacharyRoth, ZacharySchmidt, ZackAlimov, ZackBronson, ZackBrown, ZackMorrow, ZackZhou, ZahTally, ZahidHossain, ZahidNaqvi, ZahraAbdou, ZahraKhan, ZaidAlBanna, ZailuGao, ZainMagsi, ZainabMemon, ZainalArifin, ZainalHakim, ZakFerrari, ZakWilliamson, ZakaiKinan, ZakariaHaque, ZakariaHaris, ZakiAlam, ZakiaAlMaamari, ZalTarang, ZalTarangLeftBar, ZalemMelaz, ZandraHaes, ZaneleMotsa, ZansongZhu, ZariusTularial, ZavisPexidr, ZbigniewChamski, ZbigniewKosowski, ZbigniewKulesza, ZbigniewLukasiak, ZbigniewSobkow, ZbynekCerveny, ZdenekPalecek, ZdenekSnajder, ZdenkoVarnus, ZealZeng, ZealZengLeftBar, ZebCook, ZedTiberius, ZedUscule, ZeebaBabu, ZeeshanRaza, ZeevBelkin, ZekengLiang, ZelalemMengistu, ZeljkoBlace, ZeljkoSmigic, ZeljkoStevanovic, ZeljkoTrogrlic, ZemianDeng, ZenaFong, ZenderChen, ZenithLin, ZenithLinLeftBar, ZhanYi, ZhangBin, ZhangDawei, ZhangJianguo, ZhangJun, ZhangKai, ZhangPeng, ZhangQiang, ZhangSeven, ZhangTieYing, ZhangXiang, ZhangXinji, ZhangXuechao, ZhangZ, ZhangZhanj, ZhangZhanjLeftBar, ZhannaNakhshunova, ZhannaRu, ZhaoHuijuan, ZhaoPeng, ZhaoWang, ZhaohuiLi, ZhaoweiWu, ZheWang, ZheXin, ZhenKyle, ZhenLiu, ZhenZhou, ZhenchangLiu, ZhengAlan, ZhengAlanLeftBar, ZhengLingxiang, ZhengShao, ZhengpengWu, ZhenyuXu, ZhiWang, ZhiWang63, ZhiWangLeftBar, ZhifangLi, ZhigangWang, ZhihengZ, ZhijieZou, ZhikunLiu, ZhiliangHu, ZhiweiSun, ZhiweiSunLeftBar, ZhiyiLi, ZhiyuanXu, ZhoanMoro, ZhongLi, ZhongZichang, ZhongZputee, ZhonglinKo, ZhouFangzhou, ZhouLi, ZhouXin, ZhouXuan, ZhouYiZheng, ZhouYuanchi, ZhuChenyang, ZhuTao, ZhuXiaoming, ZhuYan, ZhuangFangqing, ZhubinBin, ZiaMulla, ZiaMullaLeftBar, ZiaQuraishi, ZiaSyed, ZiaToor, ZiaVudeen, ZiadMelhem, ZiadMelhemLeftBar, ZianWang, ZibiJanik, ZierohTardy, ZigmokBenevolence, ZihongLu, ZikaZulu, ZimRon, ZinaKam, ZisuZhao, ZivBaram, ZiyinZhang, ZlatinIvanov, ZoeBCullen, ZoeCullen, ZoharGolan, ZoharGolanLeftBar, ZoharMelamed, ZolarLee, ZolkifleHaron, ZoltanGabor, ZoltanJung, ZoltanKovacs, ZoltanKrivosija, ZoltanNagy, ZoltanOrszag, ZoltanPetrasovits, ZoltanSzabo, ZoltanSzucs, ZoltanZidarics, ZoranKajis, ZoranKovacevic, ZoranPavlovic, ZoranStojanovic, ZoyBai, ZrinkoModrusan, ZsoltBerenyi, ZsoltLipjanszky, ZsoltMolnar, ZsoltNadas, ZsoltSzloboda, ZsoltVilhelm, ZtevenJones, ZuZhihui, ZubairKhan, ZubairSaiyed, ZufairAhamed, ZviBoshernitzan, ZviZemel, ZvikaRap, ZyadShukoor

However, you cannot use this for access control since access control looks at the unexpanded topic content.

Solution: Simply restrict your web first to your TWikiAdminGroup, then relax the restriction as needed.

-- PeterThoeny - 18 Nov 2004

Hello, thanks for your answer.

But when i do like you say i have another problem.

These are lines of access control i have done:

Set DENYWEBVIEW = Set ALLOWWEBVIEW = Set DENYWEBCHANGE = ALL Set ALLOWWEBCHANGE = TWikiAdminGroup? , ActeursGroup? Set DENYWEBRENAME = Set ALLOWWEBRENAME = TWikiAdminGroup? , ActeursGroup?

Users or groups allowed to change or rename this WebPreferences topic: (i.e. TWikiAdminGroup? ) Set ALLOWTOPICCHANGE = TWikiAdminGroup? Set ALLOWTOPICRENAME = TWikiAdminGroup?

Web preferences that are not allowed to be overridden by user preferences: Set FINALPREFERENCES = WEBTOPICLIST, DENYWEBVIEW, ALLOWWEBVIEW, DENYWEBCHANGE, ALLOWWEBCHANGE, DENYWEBRENAME, ALLOWWEBRENAME

With this config user who is included in group Acteurs(group that i have created) can not change any topic in my web . I don't understand nothing.

May anyone help me please?

-- MamadiFofana - 18 Nov 2004

 
Topic revision: r3 - 18 Nov 2004 - 11:09:29 - MamadiFofana
Support.GetListofAllUsersSeparatedByCommaWithSearch moved from Support.GetListofAllUsersSeparaedByCommawithSearch on 18 Nov 2004 - 05:02 by PeterThoeny - put it back
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback