Loading...
Use
Create
Develop
FAQ
Troubleshooting
History: Permission Management
View page
Source of version: 30
(current)
A profile would not be very useful if it could not grant rights appropriately for groups. Profiles allow to create groups and to modify the permissions of existing groups using a unified syntax. The permissions block is a top level block. For category permissions: create the categories and assign items to them with the ((category handler)). Then give groups permissions on the categories with the permissions handler. ! Example !! Group Permissions Example {CODE(caption=>YAML,wrap=>1)} permissions: Anonymous: allow: [ export_wiki ] Registered: description: Users that are logged in allow: [ edit, minor ] deny: [ export_wiki ] Moderators: description: Trusted users watching the recent changes to avoid spam allow: [ rollback ] include: [ Registered ] {CODE} !! Group Permissions and Object Permissions Example {CODE(caption=>YAML,wrap=>1)} permissions: Anonymous: allow: [ export_wiki ] Registered: description: Users that are logged in allow: [ edit, minor ] deny: [ export_wiki ] Moderators: description: Trusted users watching the recent changes to avoid spam allow: [ rollback ] include: [ Registered ] objects: - type: forum id: $moderator_discussion_forum allow: [ forum_post, forum_post_topic, forum_read ] {CODE} !! Dynamic group name examples The dynamic groups are useful when ((Data Channels)) are used to set-up workspaces. Based on user input or object reference, a dynamic group name can be created and used instead of the simple group name. {CODE(caption=>YAML,wrap=>1)} mappings: Member: Member ($profileobject:some_ref$) Leader: Leader ($profileobject:some_ref$) permissions: Member: allow: [ view, edit ] Leader: allow: [ view, edit, rollback ] {CODE} In the above example, the group respectively named 'Member (ref)' and 'Leader (ref)' will be created if they did not exist (if ref is the input you give in the form) Permissions can be set to specific objects as long as the ID is known or it was also created by a profile using ((Object References)). The object type does not have to be supported by Tiki Profiles, but a static ID will have to be provided. !!! Create a group from user input The example below uses two $profilerequest inputs, one for group name and one for description. ''Note: if you have underscore characters in your reference names it will not work (here __groupname__ is good, __group_name__ is not).'' {CODE(caption=YAML wrap=1)} mappings: DummyGroupName: $profilerequest:groupname$Default name$ permissions: DummyGroupName: description: $profilerequest:groupdesc$Default description$ include: [ Registered ] allow: [ search, view_category, wiki_view_attachments, view ] {CODE} ! Group attributes Unless mentioned otherwise, these attributes only apply on group creation ||__Field name__|__Mandatory__|__Value__ description| |Group description allow| |List of permissions granted to the group. Permissions are as used in Tiki, except initial ''tiki_p_'' is removed. Applies on existing groups. deny| |Negative permissions. Same as ''allow''. Applies on existing groups. include| |Group name or list of included groups. Applies even if the group exists. Will replace the current list of included groups. autojoin| |When enabled, the user running the profile will automatically join the group. objects| |List of ''objects permissions''. (see below) home| |URL of the group home. theme| |Default theme for members. user_signup| |y or n, users can join this group themselves default_category| |Category ID. user_tracker| |Tracker ID. group_tracker| |Tracker ID. registration_fields| |List of tracker fields to display in the registration form. || ! Object permissions ||__Field name__|__Mandatory__|__Value__ type|yes|Object type, as listed on ((object types)) id|yes|Object ID. allow| |Similar to group allow. deny| |Similar to group deny || !! Related tool ^ The YAML Camel for permissions. You can use [http://profiles.tiki.org/tiki-download_wiki_attachment.php?attId=4&download=y|this spreadsheet"] - attatched to this page to create (most of) the YAML markup you need to create a permissions profile. It contained all the tiki perms as of 2008, and allowed assists the creation of a vertical permission stack. (Excel 2007) ^
Menu
Featured profiles
Profiles in Wizard
Profiles Todos
Handlers
Profiles Tester
Admin
of this site
Current Profiles
Tiki version
21.x
24.x
26.x
27.x
28.x
Deprecated
25.x
state
Not fully functional yet
alpha
beta
release
type
Available in the Profiles Wizard (12+)
Featured profiles
Full profile (out of the box & ready to go)
Learning profile (to show off feature)
Long tail
Mini-profile (can be included in other)
Profile-snippet (optional but needs another "parent" profile)
Security
Tests
Latest Changes
Hide Fixed Top Nav Bar on Scroll 19
Easy_GeoBlog
test_profile_change
Test_all_tracker_field_types_profile
Profiles_in_Wizard
Random_header_images_14
Hide Fixed Top Nav Bar on Scroll 19
How to Create Profiles
Test_All_Plugins
JonnyBs_Luxury_Tiki_Setup
Collaborative_Multilingual_Terminology
Profile_Test_all_Modules_Test_all_Modules_page
...more
Like almost all *.tiki.org sites, you can log in with your login from
https://tiki.org
(register over there)
Search
Find
Most Popular Tags
admin
agenda
alias
antibot
antibot captcha
app
archive
articles
banning
batch
blogs
calculations
calendars
cart
categories
cluster
codemirror
comments
computation
contact us
datachannel
debug
debug console
dropdown with other
error messages
features
file galleries
forums
geo
geocms
geolocation
group homepages
group watches
header
i18n
images
item link
items list
jquery
languages
location
map
maps
maths
menu
menupage
multilingual
ol3
ol5
openlayers
paypal
plugin
plugin alias
plugin datachannel
plugin fade
plugin tabs
plugin trackerlist
pretty trackers
print
project management
r
r project
realnames
rss
static
static text
statistics
stats
structures
syntax highlighter
tablesorter
template
trackers
user watches
visualization
watches
webservice
wiki
wiki argument variables
wiki structures
Tiki Newsletter
Subscribe to the Tiki newsletter.
Don't miss major announcements and other news!