[Enhancement]: Support role-based rules for profile field rendering
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
The issue does not name files or tests. Start by locating where profile properties are rendered and validated, then trace how user roles are available in those paths. Done means role rules can control visibility, editability, and required validation while leaving profile storage unchanged and preserving current behavior when no rules are set.
Written by the indexing model from the issue text.
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of problem
In portals with multiple user roles, different roles often require different profile fields.
Today, DNN profile properties are defined at portal level and are always shown to all users, regardless of their role.
This leads to several issues:
- Profile forms become cluttered with irrelevant fields
- Some fields are only meaningful for specific roles (e.g. vendors, staff, instructors)
- There is no built-in way to control visibility, editability, or required state of profile properties per role
- Site owners are forced to implement workarounds or build custom modules for role-specific data
Description of solution
Introduce role-based visibility and editability rules for profile properties, without changing the existing profile data schema.
Each profile property could optionally define:
- Which roles can view the field
- Which roles can edit the field
- Which roles require the field (validation)
Key points:
- Profile properties remain portal-wide
- User profile storage remains unchanged
- If no role rules are defined, behavior stays exactly as it is today
- Rules would only affect UI rendering and validation logic
This keeps the feature fully backward compatible while enabling much more flexible profile experiences.
Description of alternatives considered
-
Role-specific profile schemas:
Rejected due to high complexity, database changes, and backward compatibility risks. -
Separate custom modules per role:
Works, but duplicates functionality already handled by DNN profiles and increases maintenance cost. -
Doing nothing / workarounds:
Leads to poor UX and inconsistent implementations across portals.
The proposed approach offers the best balance between flexibility and stability.
Anything else?
This feature would be especially useful for:
- E-commerce portals (customers vs vendors)
- Educational platforms (students vs instructors)
- Corporate portals (employees vs managers)
It also aligns well with DNN’s extensibility goals while keeping the core simple and stable.
Do you plan to contribute code for this enhancement?
- Yes
Would you be interested in sponsoring this enhancement?
- Yes
Code of Conduct
- I agree to follow this project's Code of Conduct
- Dominant language
- C#
- Stars
- 1.1k
- Forks
- 791
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 24
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dnnsoftware/Dnn.Platform
-
Status: New
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
dnnsoftware/Dnn.Platform#7543 · 1 comment ·
Maintainers usually reply within 1 day
-
Status: New
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dnnsoftware/Dnn.Platform#6681 ·
Maintainers usually reply within 1 day
-
Status: New
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
dnnsoftware/Dnn.Platform#6051 · 4 comments ·
Maintainers usually reply within 1 day
-
Status: New
Difficulty 3/5 1-2 days Newbie friendliness 45/100
dnnsoftware/Dnn.Platform#7555 ·
Maintainers usually reply within 1 day
-
Status: New
Difficulty 4/5 3-5 days Newbie friendliness 22/100
dnnsoftware/Dnn.Platform#7554 · 5 comments ·
Maintainers usually reply within 1 day
All issues in dnnsoftware/Dnn.Platform
Similar issues
-
area-signalr
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
dotnet/aspnetcore#69842 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 2 days
-
bug needs-triage
Difficulty 2/5 Under an hour Newbie friendliness 78/100
microsoft/microsoft-ui-reactor#1373 ·
Maintainers usually reply within 1 day
-
Client customer-reported KeyVault needs-team-attention question Service Attention
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Azure/azure-sdk-for-net#63861 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day