Skip to main content

system.kanoa.security.getUserAssetRoles

This function requires KanoaCore module

Description

Given a user and a requested function, returns the allowed assets, functions, and roles.

Syntax

getUserAssetRoles(paramsDict)
  • Parameters
      paramsDict (Dictionary) - Dictionary with keys such as userId, function, and assetPathList.
  • Returns
      List of dictionaries (List).
  • Code Example

    # Example Usage:
    userAssetRoles = system.kanoa.security.getUserAssetRoles({'userId': 1, 'function': configureSecurity', 'assetPathList' ; ['Kanoa Industries']})