As a response to your comment, I added the simplified screenshot as below. Does this help you further?
Hi Harshraj, from what I understand, you would like to have one user with more UserRole and Primary/General combinations. Is this correct? If so, you can move the two enumerations to a separate entity. Next, you will add a one-to-many association between the original entity and the entity you just created.
When you set it up like this, you can create either a DataGrid or ListView to creat the page you are looking for. Please take care of the required create/delete buttons as well, as you might want to add more user roles along the way. Another option would be to use a microflow to create these new entities up front (one for each enum value).
This answer does include some options. Hopefully, it will help you continue.