Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Overview

As sunbird platform gets deployed by different users, they may have specific requirement around which profile fields they want to allow user to edit, which fields re mandatory, what is display name for fields etc.

Currently we have the ability to control - mandatory fields, displaynames, private vs public fields for profile. We can adapt and extend the same solution to include which profile fields are read-only.


Solution

We will update the existing System Settings for User Profile Configuration, to support read-only fields settings.


Current User Profile Config

````
{
"fields": [
"firstName",
"lastName", ...
],
"publicFields": [
"firstName",
"lastName",
"profileSummary"
],
"privateFields": [
"email",
"phone"
],
"csv":

Unknown macro: { "supportedColumns"}

,
"framework":

Unknown macro: { "fields"}

}

````


New Structure

{
  "fields": [
    "firstName",
    "lastName",
    ...
  ],
  "publicFields": [
    "firstName",
    "lastName",
    "profileSummary"
  ],
  "privateFields": [
    "email",
    "phone"
  ],
  "readOnly" : [
    "phone", ...
  ],
  "csv": {
    "supportedColumns": {
      "NAME": "firstName",
      ...
    },
    "outputColumns": {
      "userId": "USER ID",
      ...
    },
    "outputColumnsOrder": [
      "userId",
      ...
    ],
    "mandatoryColumns": [
      "firstName",
      ...
    ]
  },
  "framework": {
    "fields": [
      "board",
      "id",
      ...
    ],
    "mandatoryFields": [
      "board",
      "id",
      ...
    ]
  }
}


  • No labels