Sm_PolicyApi_DeleteSAMLAffiliation()

Deletes the SAML affiliation identified by pszAffiliationOid.
sm1252sp1
Deletes the SAML affiliation identified by
pszAffiliationOid
.
Type
SAML 2.0 Configuration function, global scope.
Syntax
int SM_EXTERN Sm_PolicyApi_DeleteSAMLAffiliation
(
void*pSessionHandle,
const char*pszAffiliationOid
);
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.
pszAffiliationOid
I
A null-terminated string containing the object identifier of an existing SAML affiliation.
Returns
  • Sm_PolicyApi_Success. The SAML affiliation was deleted successfully.
  • Sm_PolicyApi_Failure. The SAML affiliation was not deleted successfully.
  • Sm_PolicyApi_InvalidHandle. There was no valid initialization prior to this call.
  • Sm_PolicyApi_NoSession. There is no valid administrator session.
  • Sm_PolicyApi_NoPrivilege. The administrator does not have the privilege to delete a SAML affiliation.
  • Sm_PolicyApi_InvalidOID. The SAML affiliation's object identifier was not found.