Closed trex closed 4 years ago
I am using the Group concept within FusionAuth since Users and Groups are modeled there effectively to meet the project requirements. We will have a UUID referencing the Group in FusionAuth and will use this as a foreign key into our application database tables (Threads).
I am creating the Group and then adding the user to that Group as its first member as an admin of the Group. The Group admin role is modeled through metadata on the Group, which can be seen in the FusionAuth response body to retrieve the Group:
{
"group": {
"data": {
"admins": [
"1d056ee1-0ae3-4d74-8bd7-68d0aa16b888"
],
"description": "just testin"
},
"id": "b545f672-23d5-476c-931f-f1f5af3b03cd",
"name": "Test group 1",
"tenantId": "0db3d604-d75b-1e90-5eca-d4ee9a303a33"
}
}