user_criteria:{ allowWebServiceAccess:true; attributes:{update_synch:true}; display:"name"; extends:"sys_metadata"; label:"User Criteria"; name:"user_criteria"; schema:{ active:Typed<boolean,{default:true;label:"Active"}>; advanced:Typed<boolean,{default:false;label:"Advanced"}>; company:Typed< string |string[] |Record<"core_company">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Companies"; maxLength:1024; referenceTable:"core_company"; }, >; department:Typed< string |string[] |Record<"cmn_department">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Departments"; maxLength:1024; referenceTable:"cmn_department"; }, >; group:Typed< string |string[] |Record<"sys_user_group">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Groups"; maxLength:1024; referenceTable:"sys_user_group"; }, >; location:Typed< string |string[] |Record<"cmn_location">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Locations"; maxLength:1024; referenceTable:"cmn_location"; }, >; match_all:Typed< boolean, { default:false; label:[ { hint:"If set to true, only users who match an element of each condition are given access. If set to false, at least one of the set conditions should be met in order to allow access to the user."; label:"Match All"; language:"en"; plural:"Match All"; }, ]; }, >; name:Typed<string,{label:"Name";mandatory:true;maxLength:100}>; role:Typed< string |string[] |Record<"sys_user_role">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Roles"; maxLength:1024; referenceTable:"sys_user_role"; }, >; script:Typed< string |number, { columnType:"script_plain"; default:"/** Scripted User Criteria is not cached, and evaluated everytime, so performance is dependent on the script.\n* Populate `answer` with true/false or evaluate to true/false\n* The script is evaluated in the scope the user criteria is defined\n* Don't use `current` in the script or populate the variable\n* Don't use `gs.getUser()` or `gs.getUserID()`, \n* instead use `user_id` which contains the user sys_id against whom the evaluation is happening.\n*/"; label:"Script"; maxLength:8000; }, >; short_description:Typed< string, { attributes:{ serializer:"com.glide.script.TranslatedTextXMLSerializer"; }; label:"Short Description"; maxLength:4000; }, >; sys_domain:Typed< Record<"domain"> |"global", { default:"global"; label:[ { hint:"Domain to which the user criteria belongs"; label:"Domain"; language:"en"; plural:"Domains"; }, ]; }, >; sys_domain_path:Typed< string, { attributes:{case_sensitive:true}; default:"/"; label:"Domain Path"; }, >; sys_id:Typed< string, { label:[{label:"Sys ID";language:"en";plural:"Sys IDs"}]; primary:true; }, >; user:Typed< string |string[] |Record<"sys_user">[], { attributes:{ no_email:true; no_sort:true; slushbucket_ref_no_expand:true; }; label:"Users"; maxLength:1024; referenceTable:"sys_user"; }, >; }; } = ...
Type Declaration
ReadonlyallowWebServiceAccess: true
Readonlyattributes: {update_synch:true}
Readonlydisplay: "name"
Readonlyextends: "sys_metadata"
Readonlylabel: "User Criteria"
Readonlyname: "user_criteria"
Readonlyschema: { active:Typed<boolean,{default:true;label:"Active"}>; advanced:Typed<boolean,{default:false;label:"Advanced"}>; company:Typed< string |string[] |Record<"core_company">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Companies"; maxLength:1024; referenceTable:"core_company"; }, >; department:Typed< string |string[] |Record<"cmn_department">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Departments"; maxLength:1024; referenceTable:"cmn_department"; }, >; group:Typed< string |string[] |Record<"sys_user_group">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Groups"; maxLength:1024; referenceTable:"sys_user_group"; }, >; location:Typed< string |string[] |Record<"cmn_location">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Locations"; maxLength:1024; referenceTable:"cmn_location"; }, >; match_all:Typed< boolean, { default:false; label:[ { hint:"If set to true, only users who match an element of each condition are given access. If set to false, at least one of the set conditions should be met in order to allow access to the user."; label:"Match All"; language:"en"; plural:"Match All"; }, ]; }, >; name:Typed<string,{label:"Name";mandatory:true;maxLength:100}>; role:Typed< string |string[] |Record<"sys_user_role">[], { attributes:{no_sort:true;slushbucket_ref_no_expand:true}; label:"Roles"; maxLength:1024; referenceTable:"sys_user_role"; }, >; script:Typed< string |number, { columnType:"script_plain"; default:"/** Scripted User Criteria is not cached, and evaluated everytime, so performance is dependent on the script.\n* Populate `answer` with true/false or evaluate to true/false\n* The script is evaluated in the scope the user criteria is defined\n* Don't use `current` in the script or populate the variable\n* Don't use `gs.getUser()` or `gs.getUserID()`, \n* instead use `user_id` which contains the user sys_id against whom the evaluation is happening.\n*/"; label:"Script"; maxLength:8000; }, >; short_description:Typed< string, { attributes:{ serializer:"com.glide.script.TranslatedTextXMLSerializer"; }; label:"Short Description"; maxLength:4000; }, >; sys_domain:Typed< Record<"domain"> |"global", { default:"global"; label:[ { hint:"Domain to which the user criteria belongs"; label:"Domain"; language:"en"; plural:"Domains"; }, ]; }, >; sys_domain_path:Typed< string, { attributes:{case_sensitive:true}; default:"/"; label:"Domain Path"; }, >; sys_id:Typed< string, { label:[{label:"Sys ID";language:"en";plural:"Sys IDs"}]; primary:true; }, >; user:Typed< string |string[] |Record<"sys_user">[], { attributes:{ no_email:true; no_sort:true; slushbucket_ref_no_expand:true; }; label:"Users"; maxLength:1024; referenceTable:"sys_user"; }, >; }