You are here:
View Devices with Mobile Device Tracking
You can view devices using REST API, SOQL queries in Apex, or any other method that you use to interact with sObjects.

Use more general search terms.
Select fewer filters to broaden your search.
You can view devices using REST API, SOQL queries in Apex, or any other method that you use to interact with sObjects.
| Available in: Enterprise, Performance, Unlimited, and Developer Editions |
| User Permissions Needed | |
|---|---|
| To view user devices that access Salesforce: | View Devices |
Devices are exposed in the UserDevice and UserDeviceApplication sObjects. Use UserDevice to represent information that is unique to a device. Use UserDeviceApplication to represent information about applications installed on a device that is accessing Salesforce.
The device operating system provides a unique identifier that’s used to create the UserDevice object. iOS provides information that results in one UserDevice created for each combination of user and iOS app vendor. For example, if an iOS user installed the Salesforce App and the Salesforce Events app, one UserDevice is created because both apps are provided by Salesforce. Android provides information that results in a UserDevice created for each user and Android App. So if an Android user installs the Salesforce App and the Salesforce Events app, two UserDevice objects are created.
See UserDevice and UserDeviceApplication in the Object Reference for Salesforce and Lightning Platform Developer Documentation.
This REST API call retrieves all devices that have accessed your Salesforce org.
GET /services/data/v50.0/query/?q=SELECT+ID,DEVICETYPE,USER.USERNAME,LASTLOGINHISTORY.LOGINTIME+FROM+USERDEVICEThis REST API call retrieves only iOS devices that have accessed your org.
GET /services/data/v50.0/query/?q=SELECT+ID,User.Name+FROM+USERDEVICE+WHERE+PLATFORMTYPE='iOS'
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.