Sm_PolicyApi_DeleteAffiliate()
Deletes an existing affiliate.
casso127
Deletes an existing affiliate.
Type
Federation function
Syntax
int SM_EXTERN Sm_PolicyApi_DeleteAffiliate (void*pSessionHandle,const char*pszAffiliateOid);
Parameter | I/O | Description |
pSessionHandle
| I | A pointer to an internal Policy Management API data structure. The structure holds information about the administrator session and the client session. |
pszAffiliateOid
| I | A null-terminated string containing the object identifier of an existing affiliate. |
Remarks
This function deletes affiliate objects that are based on the artifact profile or the POST profile (see the Sm_PolicyApi_Affiliate_t field SAMLProfile). Deletion of an affiliate object based on the POST profile requires an API version of at least SM_POLICY_API_VERSION_6_0_2. If an earlier version is involved, and the function specifies an affiliate object based on a POST profile, the request fails.
Returns
- Sm_PolicyApi_Success. The affiliate was deleted successfully.
- Sm_PolicyApi_Failure. The affiliate was not deleted successfully.
- Sm_PolicyApi_NoSession. There is no valid administrator session.
- Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
- Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to delete an affiliate.
- Sm_PolicyApi_InvalidOid. The affiliate OID was not found.