I'm developing a serverless application which includes a concept of groups which are not pre-defined (so not the classic fixed Admin/Guest...).
Those groups are indeed generated freely by the end users of the application whom then can invite other users into these groups, remove them, delete the group etc.
Being part of a group(s) allow a user to perform certain operations on entities related to that specific group.
I'm now wondering if Cognito User Groups can be used for this purpose given that those groups will be created directly from the application by the end user and potentially an infinite number of groups.
The other option is to implement my own authoriser like querying DynamoDB to check if a user is a part of specific group. I can't really find a reference to pick up the best one.
Any experience/suggestions will be much appreciated.