Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Namespace

useradmin="urn:se.viamap.useradmin#1.0

...

Code Block
languagexml
  	<useradmin:config id="ikartan.context">
		<datasource>ds.weave</datasource>
		<schema>useradmin</schema>
		<includePublishedClients>true</includePublishedClients>
		<enableLdap>false</enableLdap>
		<admin>
		<user>admin</user>
		</admin>
	</useradmin:config>

Namespace

urn:urn:se.viamap.useradmin.userattributes#1.0

...

Name

Type

Required

Description

cache

boolean

no

If true, User Attributes will be cached. Defaults to true.

expire

number

no

Cache expiration in seconds (assumes cache is true), defaults to 300

prefix

string

no

Set a prefix for user attributes, i.e. myprefix will result in user.myprefix.theParameterName

This User Attribute provider will generate a few convenient attributes automatically related to the current user in addition to the ones defined in User Admin.

Info

Note that these keys cannot be overridden in User Admin and will be ignored

Key

Description

userUuid

The User’s database UUID

firstName

The User’s first name

lastName

The User’s last name

emailAddress

The User’s email address

title

The User’s title

department

The User’s department

phone1

The User’s Phone number

phone2

The User’s Mobile phone number

userGroupUuid

The database UUID of the User Group the User belong to

userGroupName

The name of the User Group the User belong to

tenantUuid

The database UUID of the Tenant the User belong to

tenantName

The name of the Tenant the User belong to

tenantRecid

The numeric ID of the Tenant the User belong to

Example

Code Block
languagexml
<config xmlns:ikartan=	"urn:se.viamap.ikartan.admin#1.0"
	xmlns:userattr=	"urn:se.viamap.useradmin.userattributes#1.0">

  <ikartan:config id="ikartan.context">
    <datasource>ds.weave</datasource>
    <schema>useradmin</schema>
    <includePublishedClients>true</includePublishedClients>
    <enableLdap>true</enableLdap>
    <admin>
      <user>admin</user>
    </admin>
    </ikartan:config>
  
  <ikartan:client acl="acl.admin">
    <iconCls>x-fa fa-wrench</iconCls>
    <title>Weave Admin</title>
    <description>Administer and monitor Weave</description>
    <url>admin.html</url>
  </ikartan:client>
  
  <userattr:config>
    <cache>false</cache> <!-- enable/disable cache, defaults to true -->
    <expire>300</expire> <!-- Cache expiration in seconds (assumes cache is true), defaults to 300 -->
    <!--<prefix>myprefix</prefix>--> <!-- Set a prefix for user attributes, i.e. myprefix will result in user.myprefix.theParameterName -->
  </userattr:config>
  
</config>