code: def setRoles(self, *args, **kwargs):
          
          try:
              role = self.mamburoleclass(entid=self['role']['encodedKey'], *args, **kwargs)
          except KeyError:
              return 0
          except AttributeError as ae:
              from .mamburoles import MambuRole
              self.mamburoleclass = MambuRole
              try:
                  role = self.mamburoleclass(entid=self['role']['encodedKey'], *args, **kwargs)
              except KeyError:
                  return 0
          self['role']['role'] = role
  
          return 1
docs: Adds the role assigned to this user to a 'role' field.
  
          Depends on the 'role' field that comes with a fullDetails=True
          build of the MambuUser.
  
          Returns the number of requests done to Mambu.