In a script an object is created and the attribute XOrigin is set to '1' directly. This results in the error message below:
 System role assignments: Write permission denied for value “Origin”.
This is expected behaviour.
XOrigin represents the origin of an assignment:
1 ... directly assigned
2 ... inherited
4 ... inherited from a dynamic role
8 ... from assignment order
These values will be calculated and entered by DBScheduler.
A manual modification of this attribute is not allowed.
Do not set this attribute directly.