Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Douglas_Rich
Contributor
Jump to solution

Modify user on Multi-Domains Server with API - What am I doing wrong?

[Expert@lab-cp-mds:0]# mgmt_cli -r true show administrators filter "radius" limit 400 offset 0 details-level "full" --domain 'System Data' --format json | jq '.objects[] | [.name, .domain."domain-type", ."authentication-method", ."radius-server".name] |@csv' -r | grep Any | awk -F "," '{print $1}' | tr -d '"'
TestUser

 

[Expert@lab-cp-mds:0]# mgmt_cli -r true set user name "TestUser" color "blue" --domain 'System Data' --format json {
"code" : "generic_err_object_not_found",
"message" : "Requested object [TestUser] not found"
}
Executed command failed. Changes are discarded.

0 Kudos
1 Solution

Accepted Solutions
Amir_Senn
Employee
Employee

This is the command you need to use for setting administrators.

https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-administrator~v1.9.1%20

Example:

Capture.PNG

Kind regards, Amir Senn

View solution in original post

0 Kudos
(1)
6 Replies
PhoneBoy
Admin
Admin

In the first command, you're using "show administrators"
In the second command, you're using "set users"

These are not the same thing.

0 Kudos
Douglas_Rich
Contributor

Right

The first command is to show you the users indeed does exist

The second command is to show the error "Requested object [TestUser] not found"

0 Kudos
PhoneBoy
Admin
Admin

Yes, "users" and "administrators" are different things...and have different API calls.
They also require being in different domains (administrators must be in 'System Data').

0 Kudos
Douglas_Rich
Contributor

palm-to-face 🙂

Thank you Dameon 

0 Kudos
Amir_Senn
Employee
Employee

This is the command you need to use for setting administrators.

https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-administrator~v1.9.1%20

Example:

Capture.PNG

Kind regards, Amir Senn
0 Kudos
(1)
Douglas_Rich
Contributor

ahh thank you... 

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events