The SetPermissions method of the Role interface sets role permissions for a given key.
clsCubeRole |
bRet = object.SetPermissions(key,PermissionExpression)
The Permissions property contains only one permissions key. It is preset with a value of Access. The PermissionExpression for the access key contains the property values R and RW, corresponding to read-only and read/write.
Use the following code to set permissions on an object of ClassType clsCubeRole.
'Assume an object (dsoCubeRole) of ClassType clsCubeRole exists
'Set a read-only permission
dsoCubeRole.SetPermissions "Access", "R"
'Set a read-write permission
dsoCubeRole.SetPermissions "Access", "RW"
About Decision Support Objects | Using Decision Support Objects |
Methods Cross-Reference |