# How to remove a value from 'login\_types' for a given user?

**URL:** <https://devforum.zoom.us/t/how-to-remove-a-value-from-login-types-for-a-given-user/62642>\
**Category:** API and Webhooks\
**Created:** [January 13, 2022, 6:11pm UTC](https://devforum.zoom.us/t/how-to-remove-a-value-from-login-types-for-a-given-user/62642 "2022-01-13T18:11:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodolfo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rodolfo/32/34096_2.png) [@rodolfo](https://devforum.zoom.us/u/rodolfo)\
**Post date:** [January 13, 2022, 6:11pm UTC](https://devforum.zoom.us/t/how-to-remove-a-value-from-login-types-for-a-given-user/62642/1 "2022-01-13T18:11:58Z")

</div>

**Description**  
Our zoom instance has a few users with two values under ‘login\_types’, 100 (Work Email) and 101 (SSO). We currently only want to support SSO and would like to remove the value ‘100’ from the ‘login\_types’ from these users, but seem to be unable to do it via the console or the API.

Is it possible to change the value of ‘login\_types’ for a given user? Eg: change it from [100,101] to [101] via the API?

Thanks!

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [January 14, 2022, 10:47pm UTC](https://devforum.zoom.us/t/how-to-remove-a-value-from-login-types-for-a-given-user/62642/2 "2022-01-14T22:47:32Z")

</div>

Hi @rodolfo ,

Can you please share the API endpoints you’re referencing please so I can try to replicate what you’re doing?

Thanks!  
Gianni

---

<div class="post-metadata">

**Author:** ![rodolfo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rodolfo/32/34096_2.png) [@rodolfo](https://devforum.zoom.us/u/rodolfo)\
**Post date:** [January 19, 2022, 4:56pm UTC](https://devforum.zoom.us/t/how-to-remove-a-value-from-login-types-for-a-given-user/62642/3 "2022-01-19T16:56:29Z")

</div>

Hi Gianni,  
Thanks for the quick reply. The endpoint in question is:

**Endpoint**  
[https://api.zoom.us/v2/users/EMAIL](https://api.zoom.us/v2/users/EMAIL)

**Reference API Docs:**

> **[Get a user - Users - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/user)**
>
> Use this API to view a user's information on a Zoom account. For user-level apps, pass the me value instead of the userId parameter. 
> 
> Note: Users who h...

**Problem**  
In the API response for a specific user, we see the following snippet for the field ‘login\_types’ of a given user:

```auto
(...)
"login_types": [
        100,
        101
    ],
(...)

```

Referencing the user schema in the api docs for this endpoint, we see that the value `100` maps to `Work Email` and `101` maps to `Single Sign-On (SSO)`.

**[Possible] Solution**  
We would like to **remove the value `100`** from the list of values in the field `login_types` for a given user. In other words, we want to remove the ability for a specific user to login using a email+password when that user has both ‘Work Email’ and ‘SSO’ listed as authenticated methods enabled (these settings show up under “linked accounts” in the user profile in the Zoom Admin Interface). We want to remove the ‘Work Email’ authentication method for specific users.

**Current State:**

```auto
(...)
"login_types": [
        100,
        101
    ],
(...)

```

**Goal State:**

```auto
(...)
"login_types": [
        101
    ],
(...)

```

Browsing the API for making updates to the user object didn’t yield a obvious way to change values in the field ‘login\_types’ list for a given user.

**Question**  
How can we remove the ‘work email’ for a given user?

PS: Please note that we are not looking for advice on how to change the global settings for the account as a workaround.

Many thanks,  
Rodolfo

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 26, 2022, 3:21am UTC](https://devforum.zoom.us/t/how-to-remove-a-value-from-login-types-for-a-given-user/62642/4 "2022-01-26T03:21:55Z")

</div>

@rodolfo,

Thank you for providing that clarification. Currently, removing the “work email” option for a given user is not supported via API. However, as you mentioned, you can change the global settings for the account. This feature can be found at **[Advanced \> Setting](https://zoom.us/account/setting/security)** in the Sign-in Method section. For reference, here is the screenshot of what that section looks like:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/e/6e895a9d5b2b15d22929676598981b23b0024fca.png)

I can see how this feature could add value, please feel welcome to submit your user story as a feature request here : [Feedback - Zoom](https://zoom.us/feed)

Thanks,  
Donte

---

<div class="post-metadata">

**Author:** ![rodolfo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rodolfo/32/34096_2.png) [@rodolfo](https://devforum.zoom.us/u/rodolfo)\
**Post date:** [January 26, 2022, 3:40pm UTC](https://devforum.zoom.us/t/how-to-remove-a-value-from-login-types-for-a-given-user/62642/5 "2022-01-26T15:40:28Z")

</div>

Hi @donte.zoom ,  
Thanks for the quick reply and confirmation on the current capabilities of the API. I’ll follow your recommendation and submit a feature request.

Thanks,  
Rodolfo

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [January 26, 2022, 11:15pm UTC](https://devforum.zoom.us/t/how-to-remove-a-value-from-login-types-for-a-given-user/62642/6 "2022-01-26T23:15:38Z")

</div>

Thank you for the reply, @rodolfo! It is my pleasure and I really appreciate the opportunity to provide support --wishing you all the best!

Warmly,  
Donte

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 26, 2022, 9:16am UTC](https://devforum.zoom.us/t/how-to-remove-a-value-from-login-types-for-a-given-user/62642/7 "2022-02-26T09:16:02Z")

</div>

Closed on February 26, 2022, 9:16am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
