Limiting users to create a fixed number of Doc from DocType

Hello,

I have a DocType which is shared among all users.

However, each user can only create a personalised number of Doc based on this DocType. Say User A can create 4 Documents, User B can create 10 Documents and so on.

Is this possible? If so, how should I configure it?

you may use the before_insert hook to get the count of the docs created by this user if exceeds the number of allowed docs deny the creation.
To configure the number of docs per user, you may create a new DocType or use an existing DocType based on your logic.

2 Likes