# Log in from command line

**URL:** <https://devforum.zoom.us/t/log-in-from-command-line/7804>\
**Category:** API and Webhooks\
**Created:** [January 30, 2020, 9:06pm UTC](https://devforum.zoom.us/t/log-in-from-command-line/7804 "2020-01-30T21:06:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgeo13](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@cgeo13](https://devforum.zoom.us/u/cgeo13)\
**Post date:** [January 30, 2020, 9:06pm UTC](https://devforum.zoom.us/t/log-in-from-command-line/7804/1 "2020-01-30T21:06:27Z")

</div>

Hello. I would like to embed a link on the back end of our website for our employees to be able to click a button and start a Zoom meeting. However, I would like the link to log them into Zoom with a specific username / password. Is there a way to trigger this?

I imagine it would be something like this: [https://zoom.us/j/MEETINGID/username/password](https://zoom.us/j/MEETINGID/username/password)

Is there anyway to pass that information? If so, can you please provide the code or direct me to where I can find this functionality in the API?

Thank you!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [January 30, 2020, 9:34pm UTC](https://devforum.zoom.us/t/log-in-from-command-line/7804/2 "2020-01-30T21:34:45Z")

</div>

Hey @cgeo13,

Using the [Zoom Web Client](https://support.zoom.us/hc/en-us/articles/214629443-Zoom-Web-Client), you can set a default name and password to join the meeting. This isn’t logging in the user to Zoom, but it is allowing them to join your meeting:

> [@Zoom Web Client Default Username](https://devforum.zoom.us/t/zoom-web-client-default-username/4358/2):
>
> Hey Subhan, Good news, there is a way! Using this url you can pass a default username. Be sure to include the prefer=1 param and base64encode the username in the un param. https://zoom.us/wc/{MeetingID}/join?prefer=1&un={Base64EncodedUsername} Duplicate of I will be sure to add this to our docs! Thanks and hope this helps!

Add the `&pwd={password}` query param to the url like this:

`https://zoom.us/wc/{MeetingID}/join?prefer=1&un={Base64EncodedUsername}&pwd={password}`

Or you can implement [OAuth](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-oauth-app) which logs in the user to their Zoom account, and then direct them to the meeting url which opens the Zoom App.

There is also a setting which only allows logged in Zoom users with certain email names to join your meeting.

> **[Configuring authentication settings and profiles](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0061263)**
>
> Authentication profiles allow hosts to restrict meeting participants and webinar attendees to signed-in

Let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![cgeo13](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@cgeo13](https://devforum.zoom.us/u/cgeo13)\
**Post date:** [February 7, 2020, 7:28pm UTC](https://devforum.zoom.us/t/log-in-from-command-line/7804/3 "2020-02-07T19:28:53Z")

</div>

> [@tommy](#):
>
> [https://zoom.us/wc/{MeetingID}/join?prefer=1&un={Base64EncodedUsername}&pwd={password}](https://zoom.us/wc/%7BMeetingID%7D/join?prefer=1&un=%7BBase64EncodedUsername%7D&pwd=%7Bpassword%7D)

That is awesome! Just a question. Where do I find the “base64encoded username”? I did an API call to get all of my user information. Am I correct that I can encode it with something like this? [https://www.base64encode.org/](https://www.base64encode.org/)

Also, do you by any chance know if the “id” returned is also the sid and uid from this article? I am a little unclear. I created a script that returned user information like “first\_name”, “last\_name” etc. It didn’t return uid or sid but it returned “id”. This would be in reference to the following article:

[https://medium.com/zoom-developer-blog/zoom-url-schemes-748b95fd9205](https://medium.com/zoom-developer-blog/zoom-url-schemes-748b95fd9205)

I could give you the URL for the scripts I’ve written to return the data but I wouldn’t want to do that publicly. I believe I have also returned the user token with a different script.

{"token:“abcdefghijklmno”

Does that look familiar? I just want to make sure I’m plugging in the right data.

Thanks!

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 7, 2020, 8:36pm UTC](https://devforum.zoom.us/t/log-in-from-command-line/7804/4 "2020-02-07T20:36:39Z")

</div>

Hey @cgeo13,

The `un` param can be anything you would like! So if you wanted `cgeo13` to display as your name for the meeting, you would simply [base64 Encode](https://www.base64encode.org/) it, after which it would become `Y2dlbzEz`.

The **uid** is the User ID returned from the [GET /users](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/users) endpoint or [GET /user/{email}](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user) endpoint.

Let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:14pm UTC](https://devforum.zoom.us/t/log-in-from-command-line/7804/5 "2020-08-21T19:14:05Z")

</div>


