T4EA  AIG_19.2 C8891 A24697
Teamcenter Gateway for Enterprise Applications API Reference
CONFIGURATION::MANAGER::Roles Namespace Reference

Commands to edit the role configuration. More...

Functions

 getSecurityContextLevelAssignments
 Returns all configured role to security context level assignments as dict. More...
 
 getSecurityContextLevelForRole role
 Returns the security context level of a given role. More...
 
 setSecurityContextLevelAssignments roleLevelDict
 Assigns new security context levels for several roles at once. More...
 
 setSecurityContextLevelForRole role level
 Sets the security context level for a role. More...
 

Detailed Description

Commands to edit the role configuration.

Function Documentation

◆ getSecurityContextLevelAssignments()

CONFIGURATION::MANAGER::Roles::getSecurityContextLevelAssignments

Returns all configured role to security context level assignments as dict.

Parameters
none
Returns
dict containing all roles as keys and each assigned security context level as value
2  puts "Role $role has currently security context level $level"
3 }

◆ getSecurityContextLevelForRole()

CONFIGURATION::MANAGER::Roles::getSecurityContextLevelForRole   role  

Returns the security context level of a given role.

Parameters
rolename of the role the level should be received for. Following roles exist
  • admin
  • operator
  • support
  • user
Returns
the current security level context of the role. The following levels exist
  • UNRESTRICTED
  • RESTRICTED
  • CONFIDENTIAL
  • STRICTLYCONFIDENTIAL
1 set role "operator"
3 puts "Role $role has security context level $level"

◆ setSecurityContextLevelAssignments()

CONFIGURATION::MANAGER::Roles::setSecurityContextLevelAssignments   roleLevelDict  

Assigns new security context levels for several roles at once.

In case of a valid dict, each given security context level is assigned to the corresponding known role contained in the dict. Unknown roles are ignored and missing roles are complemented by the existing configuration. In case the dict contains any role twice, the last assignment takes precedence over previous once.

Parameters
dictcontaining roles as keys and the new assigned security context levels as the corresponding values
Returns
nothing
1 set allSeeAllConfiguration [dict create admin STRICTLYCONFIDENTIAL operator STRICTLYCONFIDENTIAL support STRICTLYCONFIDENTIAL user STRICTLYCONFIDENTIAL]

◆ setSecurityContextLevelForRole()

CONFIGURATION::MANAGER::Roles::setSecurityContextLevelForRole   role level  

Sets the security context level for a role.

Parameters
rolename of the role the level should be set for. The following roles exist
  • admin
  • operator
  • support
  • user
levelname of the security context level to assign. The following levels exist
  • UNRESTRICTED
  • RESTRICTED
  • CONFIDENTIAL
  • STRICTLYCONFIDENTIAL
Returns
nothing
1 set role "operator"
2 if {[::CONFIGURATION::MANAGER::Roles::getSecurityContextLevelForRole $role] in [list CONFIDENTIAL STRICTLYCONFIDENTIAL]} {
3  puts "Limiting security context level for role $role"
5 }