# PMI not been generated when creating user via API using ssoCreate action

**URL:** <https://devforum.zoom.us/t/pmi-not-been-generated-when-creating-user-via-api-using-ssocreate-action/86946>\
**Category:** Users and Groups\
**Tags:** api\
**Created:** [April 18, 2023, 10:36pm UTC](https://devforum.zoom.us/t/pmi-not-been-generated-when-creating-user-via-api-using-ssocreate-action/86946 "2023-04-18T22:36:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thalisson.barbosa](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/thalisson.barbosa/32/47715_2.png) [@thalisson.barbosa](https://devforum.zoom.us/u/thalisson.barbosa)\
**Post date:** [April 18, 2023, 10:36pm UTC](https://devforum.zoom.us/t/pmi-not-been-generated-when-creating-user-via-api-using-ssocreate-action/86946/1 "2023-04-18T22:36:13Z")

</div>

API Endpoint:  
[Zoom Meeting API → Users → userCreate](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/userCreate)

**Description**  
The user GET request returns 0 as the PMI value for users created using the “ssoCreate” action.

**How To Reproduce**  
URL: [https://api.zoom.us/v2/users](https://api.zoom.us/v2/users)  
Method: POST  
**Payload**

```auto
{
  "action": "ssoCreate",
  "user_info": {
    "email": "thalissonbarbosa@myorganization.com",
    "first_name": "Thalisson",
    "last_name": "Barbosa",
    "display_name": "Thalisson Barbosa",
    "type": 2
  }
}

```

The user is created successfully. But when I GET the user, the PMI value is 0:

```auto
{
    "id": "{hidden}",
    "first_name": "Thalisson",
    "last_name": "Barbosa",
    "display_name": "Thalisson Barbosa",
    "email": "thalissonbarbosa@myorganization.com",
    "type": 2,
    "role_name": "Member",
    "pmi": 0,
    "use_pmi": true,
    "personal_meeting_url": "",
    "timezone": "",
    "verified": 1,
    "dept": "",
    "created_at": "2023-04-18T22:22:28Z",
    "cms_user_id": "",
    "jid": "{hidden}",
    "group_ids": [],
    "im_group_ids": [],
    "account_id": "{hidden}",
    "language": "en-US",
    "phone_country": "",
    "phone_number": "",
    "status": "active",
    "job_title": "",
    "location": "",
    "login_types": [
        101
    ],
    "role_id": "2",
    "account_number":"{hidden}",
    "cluster": "aw1",
    "user_created_at": "2023-04-18T22:22:28Z"
}

```

I can only get the PMI value when I manually create the PMI on the PATCH request.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [April 19, 2023, 7:08pm UTC](https://devforum.zoom.us/t/pmi-not-been-generated-when-creating-user-via-api-using-ssocreate-action/86946/2 "2023-04-19T19:08:41Z")

</div>

Hi @thalisson.barbosa

Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
Could you please confirm that you have enabled the pre-provision option in your account?

 ![Screenshot 2023-04-19 at 3.06.19 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/c/7cacc4019f29bd3b6fb83a7dad2916340c1739bf.png)

If you do have it enabled, could you please try passing type:99 in your request

 ![Screenshot 2023-04-19 at 3.07.43 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/d/6/d65b29e691e6ce8f1ff80479f798f2195699f4e4.png)

Let me know if this helps,  
Cheers,  
Elisa
