Question

I've been trying to use the directory API to add an alias to a group, and it doesn't seems to work, is this feature operational already? Thank you!

Was it helpful?

Solution

Yes, it works properly. Here's an example of GAM 2.995 creating a domain alias for your reference. I'd need to see code to determine where you're having issues.

$ touch gam/debug.gam
$ gam create alias test-alias@jay.powerposters.org group testme@jay.powerposters.org

Creating alias test-alias@jay.powerposters.org for group testme@jay.powerposters.org
connect: (www.googleapis.com, 443)
send: 'POST /admin/directory/v1/groups/testme@jay.powerposters.org/aliases?alt=json  HTTP/1.1
Host: www.googleapis.com
content-length: 44
accept-encoding: gzip, deflate
accept: application/json
user-agent: Google Apps Manager 2.995 / jay@ditoweb.com (Jay Lee)
            / Python 2.7.4 final
            / Linux-3.8.0-26-generic-x86_64-with-Ubuntu-13.04-raring x86_64
            / google-api-python-client/1.1
content-type: application/json
authorization: Bearer ya29.XXX

{"alias": "test-alias@jay.powerposters.org"}'

reply: 'HTTP/1.1 200 OK\r\n'
header: Cache-Control: no-cache, no-store, max-age=0, must-revalidate
header: Pragma: no-cache
header: Expires: Fri, 01 Jan 1990 00:00:00 GMT
header: Date: Wed, 10 Jul 2013 17:34:38 GMT
header: ETag: "2rnFeCLM59Q4Hv06VzEjKQtYAxk/uYyLVNg9ntD0jUUkkana74HyFfQ"
header: Content-Type: application/json; charset=UTF-8
header: Content-Encoding: gzip
header: X-Content-Type-Options: nosniff
header: X-Frame-Options: SAMEORIGIN
header: X-XSS-Protection: 1; mode=block
header: Content-Length: 112
header: Server: GSE
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top