How to give two user permissions

I want to give two or more permissions to a user.

For example, I want to give this user permission to two companies, but it does not allow me.
please any comment will help

Let me get your use case correctly.
You are trying to give a user, permission to two companies !!!

If yes can I see snip of your company list, just to be sure you have more than one company created

Thanks for answering
Yes! It is a user request.
I have tried to search the code but I have not succeeded.

The permission for any of the two companies is placed correctly, but when trying to place the same permission for the next company, the error occurs

1 Like

It’s works well on my version 12 and 13 instances.

I suggest you customize user permission doctype and ensure unique is not ticked for user field.