Skip to content

Instantly share code, notes, and snippets.

@gdestuynder
Last active October 5, 2018 21:46
Show Gist options
  • Save gdestuynder/0370e852ee20f8003f11784f610cf237 to your computer and use it in GitHub Desktop.
Save gdestuynder/0370e852ee20f8003f11784f610cf237 to your computer and use it in GitHub Desktop.
{
"schema": "https://person-api.sso.mozilla.com/schema/v2/profile",
"user_id": {
"signature": {
"publisher": {
"alg": "RS256",
"typ": "JWS",
"name": "access_provider",
"value": ""
},
"additional": [
{
"alg": "RS256",
"typ": "JWS",
"name": null,
"value": ""
}
]
},
"metadata": {
"classification": "PUBLIC",
"visibility": "anyone",
"last_modified": "2018-01-01T00:00:00Z",
"created": "2018-01-01T00:00:00Z",
"verified": true
},
"value": "ad|Mozilla-LDAP-Dev|dummymcdummy"
}
}
{
"visilibity": [
"anyone",
"registered_mozillians",
"follow_data_classification"
]
}
{
"update": {
"user_id": "access_provider",
"login_method": "access_provider",
"active": "cis",
"last_modified": "cis",
"created": "cis",
"usernames": "mozilliansorg",
"first_name": "mozilliansorg",
"last_name": "mozilliansorg",
"primary_email": "access_provider",
"identities": "mozilliansorg",
"ssh_public_keys": "mozilliansorg",
"pgp_public_keys": "mozilliansorg",
"access_information": {
"access_provider": "access_provider",
"ldap": "ldap",
"hris": "hris",
"mozilliansorg": "mozilliansorg"
},
"fun_title": "mozilliansorg",
"description": "mozilliansorg",
"location_preference": "mozilliansorg",
"office_location": "mozilliansorg",
"timezone": "mozilliansorg",
"preferred_languages": "mozilliansorg",
"tags": "mozilliansorg",
"pronouns": "mozilliansorg",
"picture": "mozilliansorg",
"uris": "mozilliansorg",
"phone_numbers": "mozilliansorg",
"alternative_name": "mozilliansorg"
}
}
@gdestuynder
Copy link
Author

gdestuynder commented Oct 5, 2018

1st struct is an example attribute, the change is in metadata.visibility

2nd struct is just the list of possibilities. follow_data_classification means that:

  • PUBLIC is anyone/everyone
  • STAFF_ONLY is just staff, not NDA
  • MOZILLA_CONFIDENTIAL is both staff and NDA
  • INDIVIDUAL_CONFIDENTIAL is private/only self/only user
  • WORKGROUP_CONFIDENTIAL currently unused

3rd struct shows what dinopark/mozilliansorg can affect. when not listed, it cannot modify visibility and these would have defaults set.
The default would be registered_mozillians for most except access_information which would be follow_data_classification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment