BPUserRelationship
Describes the relationship of a user to a business partner
A BPUserRelationship object describes the relationship between a user and a business partner. While the concept of the business partner deals with the business-oriented perspective on an actor in a particular business scenario, the user is a technical entity that is needed for a business partner to actually log on to the SAP IoT platform. Although the business partner concept comprises both organizations as well as persons, a user is normally associated only with business partners of type person.
To fully define the relationship between a user and a business partner, the user ID and the business partner ID must be provided. The technical ID of the relationship itself is automatically calculated and assigned by the system upon creation.
Base URI:
-
Formal description: https://<server address>[:<port number>][/path]/BPUserRelationships
- Example for a base URI in a cloud foundry environment: https://business-partner.cfapps.eu10.hana.ondemand.com/BPUserRelationships
Payload
For POST and GET, only media type JSON is supported. The JSON for these methods has the following structure:
{
"relationshipID" : { "type": "string", "maxLength": 32 },
"businessPartnerID" : { "type": "string", "minLength": 32, "maxLength": 32, "required": true },
"userNameID" : { "type": "string", "minLength": 1, "maxLength": 255, "required": true }
}
|
Name |
Description |
|---|---|
|
relationshipID |
Unique identifier of the relationship (automatically defined by the system) |
|
businessPartnerID |
Business partner to which the user is related |
|
userNameID |
User to which the business partner is related |
Methods
| HTTP Method | Action | URI | Scope |
|---|---|---|---|
| POST | Create a BPUserRelationship | /BPUserRelationships |
<bp>.c <bp>.tenant.r |
| GET | Read a BPUserRelationship | /BPUserRelationships('<relationshipID>') |
<bp>.r <bp>.tenant.r |
| GET | Read all BPUserRelationships | /BPUserRelationships |
<bp>.r <bp>.tenant.r |
| GET | Read all Matching BPUserRelationships | /BPUserRelationships |
<bp>.r <bp>.tenant.r |
| DELETE | Delete a BPUserRelationship | /BPUserRelationships('<relationshipID>') |
<bp>.d <bp>.tenant.r |