ntawileh / obsidian-google-lookup

Obsidian plugin that pulls contact and calendar event information from your Google account
https://ntawileh.github.io/obsidian-google-lookup
MIT License
77 stars 10 forks source link

Seeing Unknown for Contacts #25

Closed vkbytes closed 4 months ago

vkbytes commented 1 year ago

I have an issues where the first and the last name does not appear in the search and there by not creating the file with the desired name. CleanShot 2022-11-12 at 16 20 26 It does not happen for my user id though, I configured the right API access as well. Iam using this for our work domain Any idea why that would be the case.

ntawileh commented 1 year ago

I've seen this before. I suspect it is the External Directory Sharing domain setting which would limit fields that are accessible via the API.

I don't know if you are an admin on your domain or if you're able to validate that.

drye commented 1 year ago

I have the same problem. This is the setting:

image

Should the first option be selected for this to work instead?

ntawileh commented 1 year ago

I believe so. If you are able to try it to confirm, that would be great. Note that changes like this on the google side might take a while to take effect, so you might have to give it some time before trying.

drye commented 1 year ago

Hm, looks like this made it worse. Directory doesn't yield any results and in the obsidian log this is what I now see:

unable to query directory: The G Suite domain admin has disabled external directory sharing. See more details at https://support.google.com/a/answer/6343701

To make sure, I'll wait a bit, if this is that "might take some time" thing :)

drye commented 1 year ago

Update: waiting didn't help. WIth the Public data and authenticated user basic profile fields no directory results are returned at all. ☹️

ntawileh commented 1 year ago

bummer :/ thanks for checking. it has to be some google setting; i'll dig around some more and see if i can figure it out

ntawileh commented 1 year ago

I believe this could be related to https://issuetracker.google.com/issues/196235775?pli=1

ntawileh commented 11 months ago

it seems google finally fixed this according to the status here: https://issuetracker.google.com/issues/196235775

hopefully this resolved your issue