Reputation: 397
Best way to add custom information to a Google Account via AdminSDK
I will add custom information to accounts in Apps, what would be the best practice? Im thinking of adding the data to "ims" were I can add custom types, any feedback on that, is there any better way/more suitable properties?
In this exmaple i need to add a "internalBussinesNumber" with value= "7497261_DK", could this be done like this? I just need to GET/Retrieve this info later for another system via Google API/JSON.
"ims": [
{
"type": custom,
"customType": "internalBussinesNumber",
"protocol": custom_protocol,
"customProtocol": "internalBussinesNumber",
"im": "7497261_DK",
"primary": false
}
],
Could this be done?
Upvotes: 0
Views: 294
Reputation: 13528
The better way to do this would be to use the newly announced Custom User Schemas.
"customSchemas": {
"employmentData": {
"employeeNumber": "123456789",
"jobFamily": "Engineering"
"location": "Atlanta",
"jobLevel": 8,
"projects": [
{ "value": "GeneGnome", "customType": "development" },
{ "value": "Panopticon", "customType": "support" }
]
}
}
Upvotes: 1