Drivein Huddle
06/01/2023, 6:09 PM/booking
request, there is a query params called attendeeEmails
, however when i used it in the booking, it dosen't seem to workAli
06/01/2023, 8:53 PMDrivein Huddle
06/01/2023, 10:22 PMJohn K
06/02/2023, 1:41 AMAli
06/02/2023, 12:06 PMDrivein Huddle
06/02/2023, 1:41 PMAli
06/02/2023, 6:29 PMDrivein Huddle
06/05/2023, 2:04 PMAli
06/06/2023, 8:37 AMAli
06/06/2023, 8:42 AMAli
06/06/2023, 8:45 AMDrivein Huddle
06/06/2023, 11:01 PMUSER
, is there a way I can make the user and ADMIN
, shouldn't it be admin by default?Drivein Huddle
06/06/2023, 11:01 PMAli
06/07/2023, 9:04 AMyarn prisma db-studio
) and then they can make these requests.
However, if you're on Cal.com cloud, you can't become an Admin as it becomes a privacy concern.
If you're a team on Cal.com cloud, we are working on a team level Admin AFAIK, but it'll be some time before it becomes available via APIDrivein Huddle
06/07/2023, 1:11 PMJohn K
06/07/2023, 2:18 PMAli
06/07/2023, 6:08 PMwe cannot query by id through the BE without being an “admin” even though this is our account with our api keyYou can't query by "userId" not "id". id here means booking id, which you can obviously query using your non-admin API key.
this is because of “privacy” concerns, even though we can query ALL bookings which includes userId in the responseThe userId included in the bookings list is yours. Yes, this is a privacy thing along with authorization. And we can't give away Admin API keys on Cal.com cloud as the potential to harm is immense, while there is no way for us to regulate it yet. I hope this clarifies it for you! If there's anything more I can help you with, please feel free to let me know 🙏
John K
06/07/2023, 11:00 PMAli
06/08/2023, 8:07 AMis data not partitioned or restricted for each account by default?
if not, then that is the source of the security concern.Data is restricted for each account hence you can't access it unless you have an Admin API key, or you're querying your own account. I fail to see how that's a source of security concern when you can't access an account you're not authorized to. If you have created a user, you can create an API key for that user and use that to fetch details for the same. You can pretty much do all of that.
this forces us to filter on the client which is not an option.You are not going to get any bookings of users other than yourself, what are you trying to filter when the bookings list will not contain any other user? 🤔 You would need to fetch bookings of each user individually.
this has to be a pretty common utilization of your product right?
that is, your clients don’t want to fork or write scheduling logic themselves, nor want to store this data in its entirety themselves, but want to be able to access the data they create. obviously not every feature is going to be there, but this seems like the a use case among the first to be developedThis hasn't been requested yet, believe it or not, or it would have been prioritized over tons of features we've shipped which were requested. 🙂 But, as I said, we are working on it and would prioritize it if we get enough requests for the same. There are easy workarounds for pretty much all use-cases you mentioned. You can potentially store API Key for each user against their Ids that you store in your DB, and use the API keys instead of the Ids when querying. That should be fairly straightforward and doesn't authorize you to use an account you shouldn't have access to.