API Documentation

class AuthenticatedUser

This interface needs to be supported by objects that are returned by user validation and used for access control.


__module__ = __builtin__

Methods

getDomains():

Return the list of domain restrictions for a user.

Permission
Always available

getRolesInContext(object):

Return the list of roles assigned to the user, including local roles assigned in context of an object.

Permission
Always available

getId():

Get the ID of the user. The ID can be used from Python to get the user from the user's UserDatabase.

Permission
Always available

getRoles():

Return a list of the user's roles.

Permission
Always available

has_permission(permission, object):

Return true if the user has a permission on an object.

Permission
Always available

has_role(roles, object=None):

Return true if the user has at least one role from a list of roles, optionally in the context of an object.

Permission
Always available

getUserName():

Return the name of a user

Permission
Always available