Skip to content

Schemas

Ross Scroggs edited this page Mar 23, 2021 · 7 revisions

Schemas

API documentation

Definitions

<SchemaName> ::= <String>
<FieldName> ::= <String>
<SchemaNameList> ::= "<SchemaName>(,<SchemaName>)*"
<SchemaEntity> ::= <SchemaNameList> | <FileSelector> | <CSVkmdSelector>

<SchemaFieldDefinition> ::=
        field <FieldName> [displayname <String>]
            (type bool|date|double|email|int64|phone|string)
            [multivalued|multivalue] [indexed] [restricted]
            [range <Number> <Number>]
        endfield

Manage schemas

When creating and updating schemas, spaces are converted to _ in schema and field names as spaces are not valid. The schema and field display names will retain the spaces. You can specify schema/field display names independently of the schema/field name.

gam create|add schema|schemas <SchemaName> [displayname <String>] <SchemaFieldDefinition>+
gam update schema <SchemaName> [displayname <String>] <SchemaFieldDefinition>* (deletefield <FieldName>)*
gam delete schema <SchemaName>

gam update schema|schemas <SchemaEntity> [displayname <String>] <SchemaFieldDefinition>* (deletefield <FieldName>)*
gam delete schema|schemas <SchemaEntity>

To create a field for your users pronouns you can use:

gam create schema pronouns field pronouns type string

And to update a users custom field you can use: gam update <UserTypeEntity> pronouns.pronouns "they/them"

Display schemas

gam info schema|schemas <SchemaEntity>
gam show schema|schemas
gam print schema|schemas [todrive <ToDriveAttribute>*]

Update History

Installation

Configuration

Notes and Information

Definitions

Command Processing

Collections

Client Access

Special Service Account Access

Service Account Access

Clone this wiki locally