Should TMF 672 allow an extra Related Party to allow is to include the relationship with a Party Role? i.e. Extra to the 2 defined relationships of Granter and User:
Perhaps this is an omission in the spec?
Principle for use
The granter should be the individual granting the permission
The user should be the individual granting the permission
RelatedParty (Extension should hold the reference to the party role) – can we or should we include this?
This would allows us to search for all permissions for a person(individual)
Also search for all permissions granted by an individual (not used that often or maybe never)
More importantly, search for all permissions that the user received because he is a household member (let's me easily remove all permission because of the deleted partyRole).
See example below - proposed extension highlighted
//The Service Manager role in the quickshousehold against BTSport Service
{
"id": "751234-1ac123-cef1a-6656",
"@type": "Permission",
"granter": {
"id": "1664cfec-9444-1038-a846-88505cd1ac01",
"href": "https://serverRoot/tmf/partyManagement/v4/individual/1664cfec-9444-1038-a846-88505cd1ac01",
"role": "household_member",
"@type": "RelatedParty",
"@referredType": "Individual"
},
"relatedParty": [{ //THIS WOULD BE AN EXTENSION - IT HOLDS ANY OTHER REALATED PARTY - in our case the party role...
"id": "989871285076123",
"href": "https:/serverRoot/tmf-api/partyRoleManagement/v4/partyRole/989871285076123",
"@type": "PartyRole"
}],
"user": {
"id": "1664cfec-9444-1038-a846-88505cd1ac01",
"href": "https://serverRoot/tmf/partyManagement/v4/individual/1664cfec-9444-1038-a846-88505cd1ac01",
"role": "household_member",
"@type": "RelatedParty",
"@referredType": "Individual"
},
"assetUserRole": [
{
"userRole": {
"id": "1003",
"href": "https://host:port/partyManagement/v4/userRole/1003",
"@type": "UserRoleRef"
},
"manageableAsset": { //How is the BTSport service modelled? what will be the @referredType
"id": "1112",
"@type": "ManageableAsset",
"name": "BTSPORT:DIGITAL",
"@baseType": "EntityRef",
"@referredType": "SERVICE", //What will be the @referredType for BTSport service
"SERVICE": {
"id": "S0309824" //What attribute of BTSport service will be captured as the id ? SCODE?
}
}
}]
}
------------------------------
Jeff Barker
BT Group plc
------------------------------