'Password credentials and partition access are mandatory,
when creating a user resource.'

def validate_create_parameters(self):

    if (self.want.password_credential and (self.want.update_password != 'on_create')):
        err = "The    'update_password'    option    needs    to    be    set    to    'on_create'    when    creating    a    resource    with    a    password."
        raise F5ModuleError(err)
    if (self.want.partition_access is None):
        err = "The    'partition_access'    option    is    required    when    creating    a    resource."
        raise F5ModuleError(err)
