10
MMC Rest API – User Groups

Mmc rest api user groups

Embed Size (px)

Citation preview

Page 1: Mmc rest api user groups

MMC Rest API – User Groups

Page 2: Mmc rest api user groups

Introduction•This presentation contains the following MMC Rest API

operations of User Groups.

1.Create a User Group2.Get All User Groups3.Get a User Group4.Update a User Group5.Delete a User Group6.Get All User Group Permissions

Page 3: Mmc rest api user groups

Create a User Group•To create a user group, need to provide the group name,

description and Permissions as shown in the below URL.•curl --basic -u username:password -d '{ "name" :

"NewUserGroup", "description": "View and Delete Events", "permissions": ["VIEW_ACTIVITY","TRACKING_DELETE"] }' --header 'Content-Type: application/json' http://localhost:8585/mmc/api/usergroups

•HTTP Method: POST

Page 4: Mmc rest api user groups

Get All User Groups•To get all available user groups, need to provide the

below URL.•curl --basic -u username:password

http://localhost:8585/mmc/api/usergroups•HTTP Method: GET

Page 5: Mmc rest api user groups

Get a User Group•To get a specific user group, need to provide the user

group name as shown in the below URL.•curl --basic -u username:password

http://localhost:8585/mmc/api/usergroups/{userGroupName}

•HTTP Method: GET

Page 6: Mmc rest api user groups

Update a User Group•To update a specific user group, need to provide the json

string as shown in the below URL.•curl --basic -u username:password -X PUT -d { "name" :

"NewUserGroup", "description": "View and Delete Events", "permissions": ["VIEW_ACTIVITY","TRACKING_DELETE"] }" --header 'Content-Type: application/json' http://localhost:8585/mmc/api/usergroups/Deployers

•HTTP Method: PUT

Page 7: Mmc rest api user groups

Delete a User Group•To remove/delete a specific user group, need to give the

user group name as shown in the below URL.•curl --basic -u username:password -X DELETE

http://localhost:8585/mmc/api/usergroups/{userGroupName}

•HTTP Method: DELETE

Page 8: Mmc rest api user groups

Get All User Group Permissions•To get all available user group permissions, need to

provide the user group name as shown in the below URL.•curl --basic -u username:password

http://localhost:8585/mmc/api/usergroups/permissions•HTTP Method: GET

Page 10: Mmc rest api user groups

Thank You