Relationship Many to Many with User Entity - NEWBIE

Good morning
I would like to develop a program where a customer has a user to login and I would like the user who logs in to see only their own data for example tickets

So i have many to many User <-> Customer
One to Many Customer -> Ticket

If i logon like admin instead i want to see all the tickets

Can someone tell me the right way to do this think in Cuba?

I am a newbie so sorry about the request

Hi,

The first question - why do you need M2M relation between customers and users?

As for your case - you can limit the data visibility using access groups from CUBA.

You might also find these guides useful if you’re just starting with CUBA.