+ "enabled": 1,
+ "email": "ryandgoulding@gmail.com",
+ "password": "**********",
+ "salt": "**********",
+ "domainid": "sdn"
+ }
+
+Get grants for the new 'ryan' user
+''''''''''''''''''''''''''''''''''
+
+::
+
+ curl --request GET 'http://localhost:8181/auth/v1/domains/sdn/users/ryan@sdn/roles' \
+ --header 'Authorization: Basic YWRtaW46YWRtaW4='
+
+ OUTPUT:
+ {
+ "roles": []
+ }
+
+Add admin grants for the 'ryan' user
+''''''''''''''''''''''''''''''''''''
+
+::
+
+ curl --request POST 'http://localhost:8181/auth/v1/domains/sdn/users/ryan@sdn/roles' \
+ --header 'Authorization: Basic YWRtaW46YWRtaW4=' \
+ --header 'Content-Type: application/json' \
+ --data-raw '{
+ "roleid": "admin@sdn",
+ "name": "admin",
+ "description": "a role for admins",
+ "domainid": "sdn"
+ }'
+
+ OUTPUT:
+ {
+ "grantid": "ryan@sdn@admin@sdn@sdn",
+ "domainid": "sdn",
+ "userid": "ryan@sdn",
+ "roleid": "admin@sdn"
+ }
+
+Remove admin grants for the 'ryan' user
+'''''''''''''''''''''''''''''''''''''''
+
+::
+
+ curl --request DELETE 'http://localhost:8181/auth/v1/domains/sdn/users/ryan@sdn/roles/admin@sdn' \
+ --header 'Authorization: Basic YWRtaW46YWRtaW4='
+
+ OUTPUT: 204
+
+Get all domains
+'''''''''''''''
+
+::
+
+ curl --request GET 'http://localhost:8181/auth/v1/domains' --header 'Authorization: Basic YWRtaW46YWRtaW4='
+
+ OUTPUT:
+ {
+ "domains": [
+ {
+ "domainid": "sdn",
+ "name": "sdn",
+ "description": "default odl sdn domain",
+ "enabled": true
+ }
+ ]