The User Linked Objects API provides operations to manage user linked objects in your org.
Use link value operations to assign users to a relationship, represented by a pair of primary and associated links. See also the Linked Objects API.
For these operations, the examples use consistent IDs so that you can follow the operations more easily:
manager is the primary relationship and is assigned 00u5t60iloOHN9pBi0h7subordinate is the associated relationship and is assigned to IDs 00u5zex6ztMbOZhF50h7 and 00u1tsf0nQKavLDUh0g5Assigns the first user as the associated and the second user as the primary for the specified relationship.
If the first user is already associated with a different primary for this relationship, the previous link is removed. A linked object relationship can specify only one primary user for an associated user.
Success
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}Lists either the self link for the primary user or all associated users in the relationship specified by relationshipName. If the specified user isn't associated in any relationship, an empty array is returned.
Use me instead of id to specify the current session user.
Success
Forbidden
Not Found
Too Many Requests
[
]Deletes any existing relationship between the associated and primary user. For the associated user, this is specified by the ID. The primary name specifies the relationship.
The operation is successful if the relationship is deleted. The operation is also successful if the specified user isn't in the associated relationship for any instance of the specified primary and thus, no relationship is found.
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}