description:`The username that will be set to the user. Example: If you domain is example.com and you set the username to jhon then the user's final email address will be jhon@example.com.`,
description:`The value can be the user's primary email address, alias email address, or unique user ID.`,
},
{
displayName:'Projection',
name:'projection',
type:'options',
required: true,
options:[
{
name:'Basic',
value:'basic',
description:'Do not include any custom fields for the user',
},
{
name:'Custom',
value:'custom',
description:'Include custom fields from schemas requested in customField',
},
{
name:'Full',
value:'full',
description:'Include all fields associated with this user',
},
],
displayOptions:{
show:{
operation:[
'get',
],
resource:[
'user',
],
},
},
default:'basic',
description:'What subset of fields to fetch for this user',
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Options',
default:{},
displayOptions:{
show:{
operation:[
'get',
],
resource:[
'user',
],
},
},
options:[
{
displayName:'Custom Schemas',
name:'customFieldMask',
type:'multiOptions',
displayOptions:{
show:{
'/projection':[
'custom',
],
},
},
typeOptions:{
loadOptionsMethod:'getSchemas',
},
default:[],
description:`A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.`,
},
{
displayName:'View Type',
name:'viewType',
type:'options',
options:[
{
name:'Admin View',
value:'admin_view',
description:'Results include both administrator-only and domain-public fields for the user',
},
{
name:'Descending',
value:'DESCENDING',
description:'Results only include fields for the user that are publicly visible to other users in the domain',
},
],
default:'admin_view',
description:'Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see Retrieve a user as a non-administrator.',
description:'If all results should be returned or only up to a given limit.',
},
{
displayName:'Limit',
name:'limit',
type:'number',
displayOptions:{
show:{
operation:[
'getAll',
],
resource:[
'user',
],
returnAll:[
false,
],
},
},
typeOptions:{
minValue: 1,
maxValue: 500,
},
default:100,
description:'How many results to return.',
},
{
displayName:'Projection',
name:'projection',
type:'options',
required: true,
options:[
{
name:'Basic',
value:'basic',
description:'Do not include any custom fields for the user',
},
{
name:'Custom',
value:'custom',
description:'Include custom fields from schemas requested in customField',
},
{
name:'Full',
value:'full',
description:'Include all fields associated with this user',
},
],
displayOptions:{
show:{
operation:[
'getAll',
],
resource:[
'user',
],
},
},
default:'basic',
description:'What subset of fields to fetch for this user',
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
default:{},
displayOptions:{
show:{
operation:[
'getAll',
],
resource:[
'user',
],
},
},
options:[
{
displayName:'Custom Schemas',
name:'customFieldMask',
type:'multiOptions',
displayOptions:{
show:{
'/projection':[
'custom',
],
},
},
typeOptions:{
loadOptionsMethod:'getSchemas',
},
default:[],
description:`A comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.`,
},
{
displayName:'Customer',
name:'customer',
type:'string',
default:'',
description:`The unique ID for the customer's G Suite account. In case of a multi-domain account, to fetch all groups for a customer, fill this field instead of domain`,
},
{
displayName:'Domain',
name:'domain',
type:'string',
default:'',
description:'The domain name. Use this field to get fields from only one domain.',
},
{
displayName:'Order By',
name:'orderBy',
type:'options',
options:[
{
name:'Email',
value:'email',
},
{
name:'Family Name',
value:'familyName',
},
{
name:'Given Name',
value:'givenName',
},
],
default:'',
description:'Property to use for sorting results.',
},
{
displayName:'Query',
name:'query',
type:'string',
default:'',
description:`Free text search terms to find users that match these terms in any field, except for extended properties.</br>
description:'Whether to return results in ascending or descending order',
},
{
displayName:'View Type',
name:'viewType',
type:'options',
options:[
{
name:'Admin View',
value:'admin_view',
description:'Results include both administrator-only and domain-public fields for the user',
},
{
name:'Descending',
value:'DESCENDING',
description:'Results only include fields for the user that are publicly visible to other users in the domain',
},
],
default:'admin_view',
description:'Whether to fetch the administrator-only or domain-wide public view of the user. For more information, see Retrieve a user as a non-administrator.',
description:`Indicates if this is the user's primary phone number. A user may only have one primary phone number.`,
},
],
},
],
},
{
displayName:'Primary Email',
name:'primaryEmail',
type:'string',
default:'',
description:`The user's primary email address. This property is required in a request to create a user account. The primaryEmail must be unique and cannot be an alias of another user.`,