Secured Access to Instances

Access control on instances complements access control provided on references.

This topic describes:

This page discusses:

Access Controls for Rules

Instances are implemented as relationships and are secured using rules. Use rules to define specific access to users, roles, or credentials. The filters that define the access can be based on either the current user (including their assigned credentials) or the content itself (ownership attributes). The rules defined for types/relationships/interfaces can map these access controls to instances:

  • Read
  • Expand
  • Create
  • Modify
  • Delete

The apps use these objects to define access rights:

  • Policies govern access to references
  • Rules govern access control to instances via relationships/interfaces

In general, the privileges associated to an instance are the same as those associated to the aggregating reference. A user is authorized to expand a part and read the properties of aggregated instances if that user is authorized to read that part, and to modify and/or delete the assembly and instance properties if that user is authorized to modify and/or delete the part.

The security of instances is coupled to the aggregating reference: the set of available accesses to an instance depend on the lifecycle state of the reference it is aggregated by. For example, a reference with state SHARED can only be read but not modified, so an instance aggregated by such a reference cannot be modified either.

Create access is not controlled by the state of the parent reference because at the time the access check is performed, the relationship object has no "from" object yet.

Example: Expand Operation

This example shows how a typical access control rule is expressed in natural language and expressed in rules. The syntax of the rule is for illustration purposes only.

The instance to be expanded is Instance left wheel. This shows the logic used to expand the instance based on roles:

Expand access to the left wheel is granted:

  • to creators working for project Standard, if:
    wheel reference.V_maturity = PRIVATE and 
    left wheel instance.owner = current user and 
    left wheel instance.V_project = ‘Standard’

    or:

    wheel reference.V_maturity in 
    {IN_WORK,WAITPP,SHARED} and left wheel 
    instance.V_project = ‘Standard’

  • to leaders working for project Standard if:
    left wheel instance.V_project = ‘Standard’
  • to contributors working for project Standard if:
    wheel reference.V_maturity = SHARED and 
    left wheel instance.V_project = ‘Standard’

This MQL code shows the above logic expressed in the form of a rule:

add rule VPLM_EXPAND

 user Designer

   Read,Show

   filter “((to.current == ‘PRIVATE’) && (owner == 
   context.user) && (attribute[V_project] == ‘Standard’)) || 
   (((to.current == ‘IN_WORK’) || (to.current == ‘WAITAPP’)
   || (to.current == ‘SHARED’)) && (attribute[V_project] == ‘Standard’))“

 user Leader

   Read,Show
      
   filter "attribute[V_project] == ‘Standard’"

 user Reviewer

   Read,Show

   filter “(to.current == ‘SHARED’) && (attribute[V_project] == ‘Standard’))“