Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer

Adding AD user to Access Role using API

Hi,

 

I would like use the API to add users to an existing access role. Info I have are sAMAccountName and CN (name lastname). Is there a way to add a user like that? How would the API command look like?

 

0 Kudos
3 Replies
Highlighted
Admin
Admin

0 Kudos
Highlighted
Employee
Employee

Hi,
Use the following command:

mgmt_cli set access-role name "New Access Role 1" users.add.1.source "sAMAccountName" users.add.1.selection <USER_IDENTIFIER> users.add.1.base-dn <BASE_DN>

 For info on set-access-role API command documentation: https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/set-access-role~v1.6.1%20

Roy

0 Kudos
Highlighted
Collaborator

0 Kudos