Check if the current user has one or more platform capabilities or user properties.
canUser checks the platform for the given user capabilities, resolving to true if all given capabilities are permissible and false if not.
tecton.sources.canUser(capabilities: ...string[]): Promise<boolean>;Check a single capability.
const canEatSpam = await tecton.sources.canUser('eatSpam');Check multiple capabilities.
const canEatSpamAndEggs = await tecton.sources.canUser('eatSpam', 'eatEggs');
if (canEatSpamAndEggs) {
// User can eat both spam and eggs
}When using the canUser source, there are important details to keep in mind.
When building extensions for the UUX platform, there are two categories of capabilities that can be checked:
canTransfer, canRDC, canDomesticWire)FeatureGroupCustUser/MyCustomFeature, FeatureGroup/CustomModule, Global/PolicyModuleAccess)In UUX versions 4.7.1.2+, you can use the listCapabilities helper function to see all capabilities available for the current user by opening the browser console and running:
window.listCapabilities()
This returns an object with two arrays:
{
platformCapabilities: [
{ name: 'canTransfer', canUser: true },
{ name: 'canRDC', canUser: false },
// ... all platform capabilities
],
userProperties: [
{ name: 'FeatureGroupCustUser/MyCustomFeature', canUser: true },
{ name: 'Global/PolicyModuleAccess', canUser: true },
// ... all user properties from Q2_UuxUserProperty
]
}
capabilitiesThere is 1 frequently asked question related to this page.
The changelog provides a detailed history of new features, improvements, and bug fixes going back to Tecton 1.30.0. If the button is disabled, it indicates there have been no detectable changes since then.