VMware Workspace ONE Community
yajimad
Enthusiast
Enthusiast
Jump to solution

Retrieve the SmartGroupId of hidden smart group

Hello,

I would like to retrieve the SmartGroupId of the hidden smart group which is created automatically when we create a new organization group.
The smart group has the same name with the created organization group. But the smart group is not listed in [Groups&Settings] > [Groups] > [Assignment Groups] on UEM console.

I created a profile and use a organization group to assign the profile to my device fleet on UEM console.
After assigning, I queried the detail of the profile via REST API.
The response body indicates that the profile was assigned to the smart group with "AssignedSmartGroups": 107379, which has the same name as its "ManagedLocationGroupID".

 

Request URL:
https://asXXX.awmdm.com/API/mdm/profiles/{profileid}

Response Body:
    "AssignedSmartGroups": [
      {
        "SmartGroupId": 107379
      }
    ],
    "ExcludedSmartGroups": [],
    "ManagedLocationGroupID": 12463,

 

 

Next, I queried list of assignment groups tied to the OG with ID:12463 via REST API, but only found the response does not include the hidden smart group.

 

Request URL:
https://asXXX.awmdm.com/API/mdm/groups/12463/assignmentgroups?assignmentType=0

 

 

Then, I queried list of smart groups tied to the OG with ID:12463 via REST API, but only found the response does not include the hidden smart group.

 

Request URL:
https://asXXX.awmdm.com/API/mdm/smartgroups/search?organizationgroupid=12463

 

 

By using "SmartGroupId": 107379, I could see the detail of the smart group.

 

Request URL:
https://asXXX.awmdm.com/API/mdm/smartgroups/<smartgroupID>

Response Body:
{
  "Name": "Yajima",
  "SmartGroupID": 107379,
  "SmartGroupUuid": "818baa14-880f-48a7-a906-dfca3c7cec00",
  "CriteriaType": "All",
  "ManagedByOrganizationGroupId": "12463",
  "ManagedByOrganizationGroupUuid": "6ea94f96-5dfd-4c32-90fe-eb915ef49a3c",
  "ManagedByOrganizationGroupName": "Yajima",
  "Devices": 0,
  "Assignments": 0,
  "Exclusions": 0,
  "OrganizationGroups": [
    {
      "Name": "Yajima",
      "Id": "12463",
      "Uuid": "6ea94f96-5dfd-4c32-90fe-eb915ef49a3c"
    }
  ]

 

 

I would like to retrieve "SmartGroupId" via REST API to create a script and control large number of profile / application assignment.

Does anyone know how to retrieve the SmartGroupID of a hidden smart group?

Regards

Labels (1)
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
gmanjohal
Enthusiast
Enthusiast
Jump to solution

Hi, I think the SG does show in [Groups&Settings] > [Groups] > [Assignment Groups], but you can't search for them and can only find them by going to the last page where they will show as all greyed out, however if they're already assigned to an app or profile, hover over the assignment number and it should show the SGID in the URL at the bottom left of the screen.  

View solution in original post

2 Replies
gmanjohal
Enthusiast
Enthusiast
Jump to solution

Hi, I think the SG does show in [Groups&Settings] > [Groups] > [Assignment Groups], but you can't search for them and can only find them by going to the last page where they will show as all greyed out, however if they're already assigned to an app or profile, hover over the assignment number and it should show the SGID in the URL at the bottom left of the screen.  

yajimad
Enthusiast
Enthusiast
Jump to solution

Hi,

Thank you for your kindness.
I will use script and create smartgroups which has same name as organization group and use new smartgroups created by the script for the alternative plan as I cannot get smartgroupIDs of unknown - hidden smartgroups by using REST API.

I will close this discussion.

Thank you again for your kindness!

Regards
Daisuke

0 Kudos