Need to create contacts in "Directory" folder on Google Workspace

I need to share external contacts with my org so,, i tried to create the contacts in "Directory" Folder placed in admin contact console using people API. but, when i create the contact it's created only on "Contacts" Folder. please help me on this. i used the below code.

newContact = {"metadata": {"sources": [{"type": "DOMAIN_PROFILE"}]}, "names": [{"givenName": "John", "familyName": "Doe"}]}
results = service.people().createContact(body=newContact).execute()

enter image description here

1 answer

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum