system.kanoa.security.addUserAssetRole
Description
Updates user roles for assets.Syntax
addUserAssetRole(paramsDict, userId)- paramsDict (Dictionary) - Dictionary with keys such as roleId, assetId, and userId.
- userId (Integer) - User ID.
- Number of records created or updated (Integer).
Code Example
# Example Usage:
recordsModified = system.kanoa.security.addUserAssetRole({'roleId': 1, 'assetId': 3, 'userId': 6}, 123)