Frappe V16, User with custom roles linking issues

I’m building custom app with framework V16, the app has two doctypes that that acts as application Users, and both have a Link Field to User Doctype:

  • Provider: which is link to user has the custom role Provider User
  • Client: which is link to user has the custom role App User

And both the custom roles have No Desk Access Checked.

The main issue:

Is when creating the User Doctype with Provide Role and trying to create the Provider Doctype from this user, it can’t be linked nor the auto-fetch fields are populated.

I’ve searched all the framework Role related documentation, I’ve looked at LMS repository (they have LMS Student Role which is a Website User) however it can be linked on other documents, so do ERPNext, and I’ve used V15 for similar scenario it worked fine too.

I even tried to remove all the roles from the user but still the problem persists. The only thing that work is if I gave the User a Desk Access then I could use it as link. However my use-case require that App User (Provider & Client) would have access to the desk they will be interacted by an external application.

Is there any missing configuration, or knowing issues related to this case, I would appreciate any type of help or guidance.

Software Versions (local Setup):

  • Frappe Framework V16
  • Postgresql V18
  • Node.js 24.13
  • Ubuntu noble 24.04
1 Like