zopefoundation / Products.PluggableAuthService

Pluggable Zope authentication / authorization framework
Other
9 stars 18 forks source link

Need some help with doAssignRoleToPrincipal() #110

Closed gpzope closed 2 years ago

gpzope commented 2 years ago

Just a basic question: can I have an example on how to use the method "context.acl_users.ZODBRoleManager.doAssignRoleToPrincipal()"? Banging my head for hours.

Thank You so much!

gpzope commented 2 years ago

Oh! I got the Zope Zen Illumination! Never mind.

: context.acl_users.ZODBRoleManager.manage_assignRoleToPrincipals('Editor',['Giacomo'], RESPONSE=None, REQUEST=None)