Hello,
I understand I can identify email address of a specific Coda user but is it possible to do it the other way around?
Thanks!
Hello,
I understand I can identify email address of a specific Coda user but is it possible to do it the other way around?
Thanks!
Can you explain more along with your specific use case?
If by āthe other way aroundā you referred to userās name, I donāt think you can do that.
The āuserā in Coda only holds 1 property, which is the email. The email is the user. Thereās no other property held by Coda āuserā.
If you want to be able to pull out a specific userās email from for example a name, you can create your own user table first that at least holds another property which is the ānameā.
For example a table with 2 columns: people, and name.
You can then refer the user using the name as assigned to their email in your table.
It is legally possible with a pack but only through a sync table. The arguments will accept a list of emails and return you the list of people for those emails, no work required really (packs sdk automatically converts emails to people when you return values of ValueHintType.Person
.
Thereās a less legal way to directly read from the hidden table of Global Document People
.
$$[grid:Global-Document-People:::false:false:].Filter(
Email = "actinate@gmail.com"
).First()
Whether it will get your doc blocked or not is the question.
Generally itās a good idea to track people yourself through a dedicated table. Eventually youāll need to add properties to these people (e.g. teams, tags, salary etc) and you cannot do that on the internal table of people.
Not right. The user object holds an email, a full name, and a profile photo. Also the usual system properties like user ID, and IIRC also a property that shows their access rights to the doc but itās hidden.
Oh sorry let me clarify. What I meant by āonly holds 1 propertyā is that the query-able data for People data type (under normal circumstances as Coda intended to be) only consist of the email. And cannot be looked up using names or other meta data.
When a user signed up using codaās login or SSO, it is true that Coda table holds several other meta data regarding the account. But for people new in Coda and just using vanilla coda features without pack or special secret/hidden formulas, the only query-able data for People is the email. Unless thereās another table dedicated to list the users along with their other properties.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.