Skip to main content
Solved

how to construct computers_group params in restricted software api

  • November 16, 2023
  • 1 reply
  • 0 views

Forum|alt.badge.img+3
  • New Contributor
  • 3 replies

i tried that:

<restricted_software> <general> <name>Restrict High Sierra</name> <process_name>Install macOS High Sierra.app</process_name> <match_exact_process_name>true</match_exact_process_name> <send_notification>true</send_notification> <kill_process>true</kill_process> <delete_executable>true</delete_executable> <display_message>High Sierra is not yet supported, check Self Service after public release.</display_message> <site> <id>-1</id> <name>None</name> </site> </general> <scope> <all_computers>false</all_computers> <computers/> <computer_groups>24</computer_groups> <buildings/> <departments/> <exclusions> <computers/> <computer_groups/> <buildings/> <departments/> <users/> </exclusions> </scope> </restricted_software>

but it doesn't work

Best answer by karthikeyan_mac

Hi @aaaaaa, You are missing the <computer_group> inside <computer_groups>.

 

<?xml version="1.0" encoding="UTF-8"?> <restricted_software> <general> <id>1</id> <name>Restrict High Sierra</name> <process_name>Install macOS High Sierra.app</process_name> <match_exact_process_name>true</match_exact_process_name> <send_notification>true</send_notification> <kill_process>true</kill_process> <delete_executable>true</delete_executable> <display_message>High Sierra is not yet supported, check Self Service after public release.</display_message> <site> <id>-1</id> <name>None</name> </site> </general> <scope> <all_computers>false</all_computers> <computers/> <computer_groups> <computer_group> <id>9999</id> </computer_group> <computer_group> <id>10101</id> </computer_group> </computer_groups> <buildings/> <departments/> <exclusions> <computers/> <computer_groups/> <buildings/> <departments/> <users/> </exclusions> </scope> </restricted_software>

 

 

View original
Did this topic help you find an answer to your question?

1 reply

karthikeyan_mac
Forum|alt.badge.img+17
  • Honored Contributor
  • 281 replies
  • Answer
  • November 16, 2023

Hi @aaaaaa, You are missing the <computer_group> inside <computer_groups>.

 

<?xml version="1.0" encoding="UTF-8"?> <restricted_software> <general> <id>1</id> <name>Restrict High Sierra</name> <process_name>Install macOS High Sierra.app</process_name> <match_exact_process_name>true</match_exact_process_name> <send_notification>true</send_notification> <kill_process>true</kill_process> <delete_executable>true</delete_executable> <display_message>High Sierra is not yet supported, check Self Service after public release.</display_message> <site> <id>-1</id> <name>None</name> </site> </general> <scope> <all_computers>false</all_computers> <computers/> <computer_groups> <computer_group> <id>9999</id> </computer_group> <computer_group> <id>10101</id> </computer_group> </computer_groups> <buildings/> <departments/> <exclusions> <computers/> <computer_groups/> <buildings/> <departments/> <users/> </exclusions> </scope> </restricted_software>

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings