@@ -48,6 +48,138 @@ func (d *Connector) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)
4848 return & v2.ConnectorMetadata {
4949 DisplayName : "Baton Snowflake" ,
5050 Description : "Connector syncing users, databases and account roles from Snowflake." ,
51+ AccountCreationSchema : & v2.ConnectorAccountCreationSchema {
52+ FieldMap : map [string ]* v2.ConnectorAccountCreationSchema_Field {
53+ "name" : {
54+ DisplayName : "User Name" ,
55+ Required : true ,
56+ Description : "The name of the user (required). Can be provided via login or profile.name" ,
57+ Placeholder : "username" ,
58+ Order : 0 ,
59+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
60+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
61+ },
62+ },
63+ "login" : {
64+ DisplayName : "Login Name" ,
65+ Required : false ,
66+ Description : "The login name for the user (defaults to email if not provided)" ,
67+ Placeholder : "user@example.com" ,
68+ Order : 1 ,
69+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
70+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
71+ },
72+ },
73+ "display_name" : {
74+ DisplayName : "Display Name" ,
75+ Required : false ,
76+ Description : "The display name for the user" ,
77+ Placeholder : "John Doe" ,
78+ Order : 2 ,
79+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
80+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
81+ },
82+ },
83+ "first_name" : {
84+ DisplayName : "First Name" ,
85+ Required : false ,
86+ Description : "The first name of the user" ,
87+ Placeholder : "John" ,
88+ Order : 3 ,
89+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
90+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
91+ },
92+ },
93+ "last_name" : {
94+ DisplayName : "Last Name" ,
95+ Required : false ,
96+ Description : "The last name of the user" ,
97+ Placeholder : "Doe" ,
98+ Order : 4 ,
99+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
100+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
101+ },
102+ },
103+ "email" : {
104+ DisplayName : "Email" ,
105+ Required : false ,
106+ Description : "The email address for the user" ,
107+ Placeholder : "user@example.com" ,
108+ Order : 5 ,
109+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
110+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
111+ },
112+ },
113+ "comment" : {
114+ DisplayName : "Comment" ,
115+ Required : false ,
116+ Description : "A comment or description for the user" ,
117+ Placeholder : "User description" ,
118+ Order : 6 ,
119+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
120+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
121+ },
122+ },
123+ "disabled" : {
124+ DisplayName : "Disabled" ,
125+ Required : false ,
126+ Description : "Whether the user account should be disabled" ,
127+ Order : 8 ,
128+ Field : & v2.ConnectorAccountCreationSchema_Field_BoolField {
129+ BoolField : & v2.ConnectorAccountCreationSchema_BoolField {},
130+ },
131+ },
132+ "must_change_password" : {
133+ DisplayName : "Must Change Password" ,
134+ Required : false ,
135+ Description : "Whether the user must change their password on next login" ,
136+ Order : 9 ,
137+ Field : & v2.ConnectorAccountCreationSchema_Field_BoolField {
138+ BoolField : & v2.ConnectorAccountCreationSchema_BoolField {},
139+ },
140+ },
141+ "default_warehouse" : {
142+ DisplayName : "Default Warehouse" ,
143+ Required : false ,
144+ Description : "The default warehouse to use when this user starts a session" ,
145+ Placeholder : "COMPUTE_WH" ,
146+ Order : 10 ,
147+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
148+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
149+ },
150+ },
151+ "default_namespace" : {
152+ DisplayName : "Default Namespace" ,
153+ Required : false ,
154+ Description : "The default namespace to use when this user starts a session" ,
155+ Placeholder : "DATABASE.SCHEMA" ,
156+ Order : 11 ,
157+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
158+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
159+ },
160+ },
161+ "default_role" : {
162+ DisplayName : "Default Role" ,
163+ Required : false ,
164+ Description : "The default role to use when this user starts a session" ,
165+ Placeholder : "PUBLIC" ,
166+ Order : 12 ,
167+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
168+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
169+ },
170+ },
171+ "default_secondary_roles" : {
172+ DisplayName : "Default Secondary Roles" ,
173+ Required : false ,
174+ Description : "The default secondary roles of this user to use when starting a session. Valid values: ALL or NONE. Default is ALL." ,
175+ Placeholder : "ALL" ,
176+ Order : 13 ,
177+ Field : & v2.ConnectorAccountCreationSchema_Field_StringField {
178+ StringField : & v2.ConnectorAccountCreationSchema_StringField {},
179+ },
180+ },
181+ },
182+ },
51183 }, nil
52184}
53185
0 commit comments