Files
services/groups
Dominic Wong 7ae45b522e make multi tenancy based on namespace and ID of account (#85)
* make multi tenancy based on namespace and ID of account not just namespace

* fix tests
2021-04-21 15:09:38 +01:00
..
2021-03-18 17:21:41 +00:00
2021-01-20 14:02:41 +00:00
2021-01-20 14:02:41 +00:00
2021-01-27 11:42:00 +00:00
2021-03-25 17:33:20 +00:00
2021-01-28 13:14:16 +00:00
2021-01-20 14:02:41 +00:00
2021-01-20 14:02:41 +00:00

Groups Service

The group serivce is a basic CRUD service for groups. You can use it to create groups, add members and lookup which groups a user is a member of.

Example usage:

$ micro groups create --name=Micro
{
	"group": {
		"id": "e35562c9-b6f6-459a-b52d-7e6159465fd6",
		"name": "Micro"
	}
}
$ micro groups addMember --group_id=e35562c9-b6f6-459a-b52d-7e6159465fd6 --member_id=Asim
{}
$ micro groups list --member_id=Asim
{
	"groups": [
		{
			"id": "e35562c9-b6f6-459a-b52d-7e6159465fd6",
			"name": "Micro",
			"member_ids": [
				"Asim"
			]
		}
	]
}
$ micro groups list --member_id=Boris
{}