Browse Source
Update updatepreferences.py
upped the limit on all users
master
Gerry Nelson
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
updatepreferences.py
|
|
@ -64,7 +64,7 @@ json= {"application": "SAS Visual Analytics", "version": 1,"id": preferenceID ," |
|
|
if target=='all' : |
|
|
if target=='all' : |
|
|
|
|
|
|
|
|
reqtype='get' |
|
|
reqtype='get' |
|
|
reqval='/identities/users/' |
|
|
reqval='/identities/users/?limit=10000' |
|
|
resultdata=callrestapi(reqval,reqtype) |
|
|
resultdata=callrestapi(reqval,reqtype) |
|
|
|
|
|
|
|
|
reqtype="put" |
|
|
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 |
|
|
reqval="/preferences/preferences/"+ id +"/" + preferenceID |
|
|
result=callrestapi(reqval, reqtype,data=json,stoponerror=0) |
|
|
result=callrestapi(reqval, reqtype,data=json,stoponerror=0) |
|
|
print("Updating Preference "+reqval+" = "+preferenceValue) |
|
|
print("Updating Preference "+reqval+" = "+preferenceValue) |
|
|
else: print("Cannot set preferences for a group "+id ) |
|
|
else: print("Cannot set preferences for a group "+id ) |
|
|
|