G Suite
Create a new G Suite Translation Rule
This endpoint allows you to create a translation rule for a specific G Suite instance. These rules specify how JumpCloud attributes translate to G Suite Admin SDK attributes.
Sample Request
curl -X POST https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/translationrules \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'x-api-key: {API_KEY}' \
-d '{
{Translation Rule Parameters}
}'
post/gsuites/{gsuite_id}/translationrules
Request
- Base URLhttps://console.jumpcloud.com/api/v2
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
builtIn'user_home_addresses' | 'user_work_addresses' | 'user_other_addresses' | 'user_home_phone_numbers' | 'user_mobile_phone_numbers' | 'user_other_phone_numbers' | 'user_work_phone_numbers' | 'user_work_fax_phone_numbers' | 'user_work_mobile_phone_numbers' | 'user_manager' | 'user_alternate_email' | 'user_primary_organization_cost_center' | 'user_primary_organization_department' | 'user_primary_organization_description' | 'user_primary_organization_employee_id' | 'user_primary_organization_title' | 'user_status' | 'user_password'
Built-in translations for G Suite export:
- user_home_addresses - Translate all JumpCloud user addresses of type home to G Suite Directory user addresses of type home
- user_work_addresses - Translate all JumpCloud user addresses of type work to G Suite Directory user addresses of type work
- user_other_addresses - Translate all JumpCloud user addresses of type other to G Suite Directory user addresses of type other
- user_home_phone_numbers - Translate all JumpCloud user phoneNumbers of type home to G Suite Directory user phones of type home
- user_mobile_phone_numbers - Translate all JumpCloud user phoneNumbers of type mobile to G Suite Directory user phones of type mobile
- user_other_phone_numbers - Translate all JumpCloud user phoneNumbers of type other to G Suite Directory user phones of type other
- user_work_phone_numbers - Translate all JumpCloud user phoneNumbers of type work to G Suite Directory user phones of type work
- user_work_fax_phone_numbers - Translate all JumpCloud user phoneNumbers of type work_fax to G Suite Directory user phones of type work_fax
- user_work_mobile_phone_numbers - Translate all JumpCloud user phoneNumbers of type work_mobile to G Suite Directory user phones of type work_mobile
- user_manager - Translate JumpCloud user manager to G Suite Directory user relations-manager
- user_primary_organization_cost_center - Translate JumpCloud user costCenter to G Suite Directory user costCenter for primary organization
- user_primary_organization_department - Translate JumpCloud user department to G Suite Directory user department for primary organization
- user_primary_organization_description - Translate JumpCloud user employeeType to G Suite Directory user description for primary organization
- user_primary_organization_employee_id - Translate JumpCloud user employeeIdentifier to G Suite Directory user externalIds element of type organization
- user_primary_organization_title - Translate JumpCloud user jobTitle to G Suite Directory user title for primary organization
- user_alternate_email - Translate JumpCloud user alternateEmail to G Suite Directory user emails
- user_status - Translate JumpCloud user status to G Suite Directory user status
- user_password - Translate JumpCloud user password to G Suite Directory user password
direction'export' | 'import'
Direction identify if an attribute is going to be exported or imported from GSuite
- Import- The data will be imported from GSuite into the user modal
- Export- The data will be exported from the user modal to GSuite
Example request
{
"builtIn": "user_home_addresses",
"direction": "export"
}Response
builtIn'user_home_addresses' | 'user_work_addresses' | 'user_other_addresses' | 'user_home_phone_numbers' | 'user_mobile_phone_numbers' | 'user_other_phone_numbers' | 'user_work_phone_numbers' | 'user_work_fax_phone_numbers' | 'user_work_mobile_phone_numbers' | 'user_manager' | 'user_alternate_email' | 'user_primary_organization_cost_center' | 'user_primary_organization_department' | 'user_primary_organization_description' | 'user_primary_organization_employee_id' | 'user_primary_organization_title' | 'user_status' | 'user_password'
Built-in translations for G Suite export:
- user_home_addresses - Translate all JumpCloud user addresses of type home to G Suite Directory user addresses of type home
- user_work_addresses - Translate all JumpCloud user addresses of type work to G Suite Directory user addresses of type work
- user_other_addresses - Translate all JumpCloud user addresses of type other to G Suite Directory user addresses of type other
- user_home_phone_numbers - Translate all JumpCloud user phoneNumbers of type home to G Suite Directory user phones of type home
- user_mobile_phone_numbers - Translate all JumpCloud user phoneNumbers of type mobile to G Suite Directory user phones of type mobile
- user_other_phone_numbers - Translate all JumpCloud user phoneNumbers of type other to G Suite Directory user phones of type other
- user_work_phone_numbers - Translate all JumpCloud user phoneNumbers of type work to G Suite Directory user phones of type work
- user_work_fax_phone_numbers - Translate all JumpCloud user phoneNumbers of type work_fax to G Suite Directory user phones of type work_fax
- user_work_mobile_phone_numbers - Translate all JumpCloud user phoneNumbers of type work_mobile to G Suite Directory user phones of type work_mobile
- user_manager - Translate JumpCloud user manager to G Suite Directory user relations-manager
- user_primary_organization_cost_center - Translate JumpCloud user costCenter to G Suite Directory user costCenter for primary organization
- user_primary_organization_department - Translate JumpCloud user department to G Suite Directory user department for primary organization
- user_primary_organization_description - Translate JumpCloud user employeeType to G Suite Directory user description for primary organization
- user_primary_organization_employee_id - Translate JumpCloud user employeeIdentifier to G Suite Directory user externalIds element of type organization
- user_primary_organization_title - Translate JumpCloud user jobTitle to G Suite Directory user title for primary organization
- user_alternate_email - Translate JumpCloud user alternateEmail to G Suite Directory user emails
- user_status - Translate JumpCloud user status to G Suite Directory user status
- user_password - Translate JumpCloud user password to G Suite Directory user password
direction'export' | 'import'
Direction identify if an attribute is going to be exported or imported from GSuite
- Import- The data will be imported from GSuite into the user modal
- Export- The data will be exported from the user modal to GSuite
idstring
ObjectId uniquely identifying a Translation Rule.
Changes
No recorded changes to this operation across all 1 revision of this API.