There's a new home for Articles. Find Articles on Our Product Support Page.
Hello all, we used mobicontrol on version 14.4 with zebra tc75x under android 7 -> agent version > 14 enrolled android + i've try to play with the new api javascript in the lockdown but until now i can't ... I've try to display alert -> mobicontrol.message.createInfoDialog() ... On lockdown add tag <script></script> add on the body tag -> onload="displayDialog()" re start device but nothing .. Someone call tell me for example how to start with the new api in lockdown ? thanks
Using the API, I'm trying to get a list of devices using the UPN, but I can't seem to figure out the filter syntax. Can anyone tell me how to set the filter syntax for the \devices or \devices\search API calls?
Is there an API that I can use to view what groups have rights to a profile and also update the security rights? I have a need to add a new user group and need to add it to 700+ profiles. Would really like not to have to touch each profile to update the permissions.
Hi all, I’m having some issues with the SOTI API that I’m hoping the community can help out with because the documentation is not being very helpful. The goal we’re trying to accomplish is using the API to move a set of 6 devices from each of our facility locations to a different folder. Per the documentation the API method we should be using is POST /devicegroups/{path}/members. I've tried a few different ways but it almost always returns 403 Forbidden error with "Message": "Unauthorized access or invalid reference to specified object" or a 404 Not Found. I am able to run some basic commands like getting folder details or device details: GET <instanceID>.mobicontrolcloud.com/MobiControl/api/devicegroups/referenceIds:reference_id GET <instanceID>.mobicontrolcloud.com/MobiControl/api/devices/device_id From that, I assume I should be doing the following to move the device to the reference_id below but it's not working for me. POST <instanceID>.mobicontrolcloud.com/MobiControl/api/devicegroups/referenceIds:reference_id/<device_id(s)> I’ve also tried it with and without the /members/ in between the new path and device IDs as well as the following in the body as JSON: POST <instanceID>.mobicontrolcloud.com/MobiControl/api/devicegroups/referenceIds:reference_id/<device_id(s)> { "path": "referenceIds:reference_id", "deviceIds": ["device_id"] } I get the following error when using the body method: { "$type": "ErrorDetails", "ErrorCode": 0, "Message": "Contract validation failed", "Data": [ "deviceGroup.Name: Name is a required field." ], "HelpLink": null } Can anyone tell me what I’m doing wrong? Am I misunderstanding the documentation?
Hi All, Has anyone managed to create a Azure logic App custom creator with SotiMobicontrol? From MS's documentation I should be able to test the API in Postman and then export from Postman in to Azure. Postman connects without any issues and posts back the data we're calling. If someone has done it, could they give me a helping hand? Thanks!
Hello, MC version : 14.3.3.1111 Would it be possible to retrieve a specific file in a specific folder on the device (logs generated by our work application) through API ? After research it appears that no, but I would like to have confirmation. Do you have an alternative solution or do we have to use a sync file rule ? Thank you. Best regards,
Hello, I have some question regarding the agent behavior when it receive requests. We use the MobiControl API. Does the agent process tasks synchronously or asynchronously ? What is the agent's behavior regarding queuing / buffer ? If the agent is unreachable and we send several commands to the agent, will all the commands be processed the next time the agent connects or only the last command sent ? Is there a way to manage request priorities ? If we send a reboot request to the agent (POST /devices/{deviceId}/actions: SoftReset) is there a way from our business application to catch this information ? Would it be possible to identify from our application that a reboot request has been sent to the agent ? Is there a library available for this kind of operation ? Many thanks for your answer / explanation / documentation regarding these different points.
Hi @Soti, I wanted to ask if it is possible to create and manage device group permissions with APIs. The background is that a customer has about 140 folders and he needs now certain permissions in each subfolder for a usergroup. Doing this manually about 140 times would be very time-consuming. Like described here: http://www.soti.net/mc/help/v14.0/en/console/devices/managing/groups/groups.html?hl=permission If someone knows that this is possible could I have an example how to create a device group and give user group permissions for this device group? Many thanks in advance. Best regards, Sven
Hi, my coworker is working with the api's of MC. He wants to get all user or group entriesout of MC. In the API documentation are 3 entries to get informations about the directory users/groups. /directories/{directoryConnectionName}/entries /directories/connections /directories/entries I guess the third one is necessary to get all users and/or groups from the directory. The problem is that we dont know which values it need. searchString: for example uid? memberOf: ??? We are using OpenLDAP as a directory. I hope i was able to explain our little problem. If not then you can ask specific questions. Thank you!
I have a script i am trying to get working, which is designed to move a specific device ID to a specific virtual group. I have several other API methods working properly in power-shell, but the POST /devicegroups/{path}/members is not wanting to play nice. Below is my redacted code: param ( [parameter(mandatory = $true)] [string]$apiToken, [parameter(mandatory = $true)] [string]$DeviceID, [switch]$disable ) $Header = @{ "Content-Type" = "text/json" "Authorization" = "Bearer $($apitoken)" } $DeviceIDs = @("$($DeviceID)") if ($disable) { $groupPath = "referenceId:9959e8d1-4878-41e4-ba2d-4765b45f48d3" $body = @{ "GroupPath" = $groupath "deviceIds" = $DeviceID } $groupPath = [System.Web.HttpUtility]::UrlEncode($groupPath) $workingURL = "https://###REMOVED###/MobiControl/api/devicegroups/$($grouppath)/members" Write-verbose $body write-verbose $DeviceID $result = Invoke-restmethod -Uri $workingURL -Method POST -Headers $Header -Body $body $groupPath = "referenceId:23429449-fa78-44b6-9896-65499fe7b27d" $body = @{ "GroupPath" = $groupath "deviceIds" = $DeviceID } $groupPath = [System.Web.HttpUtility]::UrlEncode($groupPath) $workingURL = "https://###REMOVED###/MobiControl/api/devicegroups/$($grouppath)/members" Write-verbose $body write-verbose $DeviceID $result = Invoke-restmethod -Uri $workingURL -Method POST -Headers $Header -Body $body return $result } else { $groupPath = "referenceId:9959e8d1-4878-41e4-ba2d-4765b45f48d3" $body = @{ "GroupPath" = $groupPath "deviceIds" = $DeviceID } $groupPath = [System.Web.HttpUtility]::UrlEncode($groupPath) $workingURL = "https://###REMOVED###/MobiControl/api/devicegroups/$($grouppath)/members" Write-output $body write-verbose $DeviceID $result = Invoke-restmethod -Uri $workingURL -Method POST -Headers $Header -Body $body return $result } } After running it i receive the following api response: Invoke-restmethod : { "$type": "ErrorDetails", "ErrorCode": 0, "Message": "Contract validation failed", "Data": [ "deviceIds: Error parsing value" ], "HelpLink": null} No matter how i pass the deviceids value it always returns a parse error. I have tried the following the device ID in an array the device ID in quotes device ID in square brackets those three converted to json The only time i have gotten it to work was on the API documentation page on my server
Hi i am trying to connect to the Mobicontrol API using VB.NET but im not getting very far. Has anybody done this? Are there any examples? It doesnt matter what i try i always get the response 'Bad Request' thanks gareth
I would like to create alerts using the REST api. I can see the rules/alerts related to a particular device using /devices{deviceId}/rules. However I don't see where I can create a rule/alert. I am running v15.1.2. If this isn't a current feature, is there a place I can make a feature request?
Good morning I started to check out the API of MobiControl and was struggling and didn't understand the authentication. But with help from this community I got some codesnippes and it's working now. I then started to look into simple requests also with help from this forum and the api documentation and created a few functions for our company. I'd like contribute and share those PowerShell cmdlets with you and maybe make some peoples lifes easier. I tested the function in our environment and like to get some feedback if it also works for you and also if you have any suggestions for code improvments. https://github.com/noaboa97/MobiControl-cmdlets Best Noah
I have been reading through these forums and finding a lot of help regarding API request. So far I'm able to request my API token via PS and use it for device management! I need the proper syntax to SendMessage action so that I can send a message to all the devices in a specific group. Please provide the syntax. When I use the below it does not work - { "Action": "SendMessage"}
Hello, We would like to retrieve some device information via the MobiControl API but can't find a related request. 1. Real time location of the device We could create a data collection rule then retrieve data via the request : GET /devices/collectedData But we hope there is a more direct and less restrictive way to retrieve this information. 2. System date and time Also, is there a method to find out the time of the lastest device reboot ? (I did not find the event in the Device Event of Alert rule) (MC Version: 14.3.3.1111 / Android Enterprise DO) Thank you in advance. Best regards,
Top-tier experts who are delivering outstanding content. Should have more than 7000 points.
Experts who are consistent with great content. Should have more than 1000 points.
Highly experienced members with valuable inputs. Should have more than 700 points.
Beginners taking the initiative. Should have more than 500 points.
New contributors starting their journey. Should have more than 250 points.