Browse Source

Update updatepreferences.py

upped the limit on all users
master
Gerry Nelson 5 years ago
committed by GitHub
parent
commit
2147635fd4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      updatepreferences.py

4
updatepreferences.py

@ -64,7 +64,7 @@ json= {"application": "SAS Visual Analytics", "version": 1,"id": preferenceID ,"
if target=='all' :
reqtype='get'
reqval='/identities/users/'
reqval='/identities/users/?limit=10000'
resultdata=callrestapi(reqval,reqtype)
reqtype="put"
@ -117,4 +117,4 @@ else: # Execute actual code to update the preference for a user or a group
reqval="/preferences/preferences/"+ id +"/" + preferenceID
result=callrestapi(reqval, reqtype,data=json,stoponerror=0)
print("Updating Preference "+reqval+" = "+preferenceValue)
else: print("Cannot set preferences for a group "+id )
else: print("Cannot set preferences for a group "+id )

Loading…
Cancel
Save