Documentation v1.0, “Optional Role and UserRoles data-models”, states users are assigned one or more roles by adding them to the User.roles property:
#Create 'user007' user with 'secret' and 'agent' roles
The documentation seems to be missing
user1.roles.append(Role(name='secret'))user1.roles.append(Role(name='agent'))
Documentation v1.0, “Optional Role and UserRoles data-models”, states users are assigned one or more roles by adding them to the User.roles property:
#Create 'user007' user with 'secret' and 'agent' roles
The documentation seems to be missing
user1.roles.append(Role(name='secret'))
user1.roles.append(Role(name='agent'))
Instead it shows the creation of an ‘Admin’ role.