Tuesday, November 22, 2011

How to create and modify an ACL with API

An ACL can be created using Composer, DFC code, or an API command. Here's a sample of creating and modifying an ACL with API:

create,c,dm_acl
set,c,l,object_name
sample_name
set,c,l,owner_name
dm_dbo
set,c,l,description
Sample ACL
grant,c,l,dm_world,6
grant,c,l,dm_owner,7
grant,c,l,sample_groupA,3
save,c,l


If you wand to modify an existing ACL, you can use:
retrieve,c,dm_acl where object_name = 'sample_name'
revoke,c,l,sample_groupA
grant,c,l,sample_groupB,3
grant,c,l,sample_groupC,7
save,c,l

1 comment:

  1. How can I add a group to already existing ACL with API?

    ReplyDelete