To anyone who has worked with  google.golang.org/api/admin/directory/v1


I am doing some automation with the Directory API.  I get a user from the 
Gsuite Directory and want to get the user.ExternalID mapped into a type 
userExternalId. It seems Admin.User.ExternalID is defined  as a interface{} 
(https://github.com/google/google-api-go-client/blob/master/admin/directory/v1/admin-gen.go#L2621)
 
 and maybe the JSON unmarshalling does not work as I am expecting it.  

I can't seem to figure out how to get easily get the 
*admin.User.ExternalIds that is returned from a user get operation into a 
an []admin.UserExternalId{} 
(https://github.com/google/google-api-go-client/blob/master/admin/directory/v1/admin-gen.go#L2879)


I am sure I am just missing something in the documents.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to