Custom roles for new users.

Author Message

Tristan Koen

Friday 09 May 2003 7:05:47 am

I am somewhat new to eZ Publish, and have run into a problem I am hoping someone here can shed some light on.

1. Is is possible to automatically assign a user to a role other than the guest role when (s)he registers?

2. Is it possible to automatically assign users to custom roles depending on the information provided at registration? For example if a user simply provides a username and an email address, s(he) is assigned to role A. If (s)he provides username, email address and company, (s)he is assigned to role B, etc.

Any guidance/suggestions from experienced users would be greatly appreciated.

Jo Henrik Endrerud

Monday 12 May 2003 5:18:40 am

New users are placed in a usergroup (defined by the DefaultUserPlacement variable in the [UserSettings] block in site.ini). You can assign as many roles as you want to this usergroup, this will again make sure that all roles assigned to the usergroup are assigned the new users.

I don't think it is posible to automaticly assign roles based on the user information he/she provides. This can be solved by creating a custom event in a workflow that assigns the user to a spesific usergroup. To do this you will have to do some programming.

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:40:13
Script start
Timing: Jan 18 2025 10:40:13
Module start 'layout'
Timing: Jan 18 2025 10:40:13
Module start 'content'
Timing: Jan 18 2025 10:40:14
Module end 'content'
Timing: Jan 18 2025 10:40:14
Script end

Main resources:

Total runtime1.0206 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0102 587.9219152.6250
Module start 'layout' 0.01020.0042 740.546939.4453
Module start 'content' 0.01441.0036 779.9922485.0000
Module end 'content' 1.01800.0026 1,264.99228.1641
Script end 1.0206  1,273.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3423160.0002
Check MTime0.00130.1299160.0001
Mysql Total
Database connection0.00170.169110.0017
Mysqli_queries0.968594.8937540.0179
Looping result0.00090.0874520.0000
Template Total0.980996.120.4904
Template load0.00230.220820.0011
Template processing0.978695.882420.4893
Template load and register function0.00010.013610.0001
states
state_id_array0.00100.102210.0010
state_identifier_array0.00200.199020.0010
Override
Cache load0.00170.1697100.0002
Sytem overhead
Fetch class attribute can translate value0.00070.065220.0003
Fetch class attribute name0.00120.116720.0006
XML
Image XML parsing0.00040.043220.0002
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00070.0680100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 4

Time used to render debug report: 0.0002 secs