What steps will reproduce the problem?
1. Send post request using API explorer (or python API)
POST https://www.googleapis.com/admin/directory/v1/users?key={YOUR_API_KEY}
Content-Type: application/json
Authorization: Bearer
ya29.hQAzdKcF237pMszC5xHm0oyun8gnJeEDuzIA05DBVIrqgbuxXRqgfxja
X-JavaScript-User-Agent: Google APIs Explorer
{
"name": {
"familyName": "Raszka",
"givenName": "Anna"
},
"password": "123412341234",
"primaryEmail": "TTTaniara@uekat.pl",
"aliases": [
"TTTanna.raszka@uekat.pl",
"TTTraszka@uekat.pl"
]
}
2. Verify the response
200 OK
- Show headers -
{
"kind": "admin#directory#user",
"id": "109017620821443849519",
"etag": "\"A3P37orO2jesVeAid019i39A1mM/jHuJ2SnhgmYZjT9x2AHAh8ewsNQ\"",
"primaryEmail": "TTTaniara@uekat.pl",
"name": {
"givenName": "Anna",
"familyName": "Raszka"
},
"isAdmin": false,
"isDelegatedAdmin": false,
"customerId": "C02mwvbx5",
"orgUnitPath": "/",
"isMailboxSetup": false
}
3. Retrieve list of aliases
GET
https://www.googleapis.com/admin/directory/v1/users/TTTaniara%40uekat.pl/aliases
?key={YOUR_API_KEY}
Authorization: Bearer
ya29.hQC0Swf963_WFMSMWO0YDMb1MT0IWJoyY53XkwTCX1mwGWtbfSp_QKxH
X-JavaScript-User-Agent: Google APIs Explorer
4. Verify that alias was not created by examining the response
200 OK
- Show headers -
{
"kind": "admin#directory#aliases",
"etag": "\"A3P37orO2jesVeAid019i39A1mM/vyGp6PvFo4RvsFtPoIWeCReyIC8\""
}
What is the expected output? What do you see instead?
The expected output should be a list of defined aliases:
"TTTanna.raszka@uekat.pl",
"TTTraszka@uekat.pl"
Instead There is an empty list.
What version of the product are you using? On what operating system?
Current version, using Windows 7 64 Bit, Chrome browser, or python client.
Original issue reported on code.google.com by kben...@uekat.pl on 19 Sep 2014 at 12:35
Original issue reported on code.google.com by
kben...@uekat.pl
on 19 Sep 2014 at 12:35