question

Chad Corey avatar image
Chad Corey asked ·

Find a user using API?

Looking through the API reference but I don't see anything like this. One of the things we want to do with the API is things like:

Provision new users

Deprovision users

modify users information.


What I don't see is a way to find user's so you can get the internal user ID in order to do these things. Is that even possible? Are the things above even possible with the API?

api
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered ·

There is an API called Get Extension List which will list out all the users of different extensions.

Example : GET https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension

will show all the details of users, ID, extension, email, status, permissions etc.


This will return all the information of all the users available along with their ID.

Now to get all the details of only one particular user, you can serarch using user ID.

Example: If a user has ID 123456789, you can get that user's info using that ID:

https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/123456789

Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Chad Corey avatar image
Chad Corey answered ·

interesting I would not have gotten that idea from the documentation which makes it seem like you are getting extensions for a specific user since it requires the internal accountID. That is what is throwing me off I guess. Just throw ~ at everything it seems.



Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Chad Corey avatar image
Chad Corey answered ·

Are we sure this is how this works? If I search for myself, using my email, I get zero records. It only seems to want to work to get the account of the user the app used for authentication.

Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.