You are here


getCapabilities(person) returns a map of capabilities for a given person.


A TemplateNode object representing the user to check.


Returns a map of capabilities as boolean assertions for the specified person.


<#assign caps = people.getCapabilities(myPerson)>
<#assign keys = caps?keys>
<#list keys as k>
  <p>${k}: <#if caps[k]>TRUE<#else>FALSE</#if></p>

The preceding code snippet would result in output such as the following:

isGuest: FALSE

isMutable: TRUE

isAdmin: TRUE        

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.