Sm_PolicyApi_AddAttributeToAffiliate()

The function adds a new attribute to an affiliate.
sm1252sp1
The function adds a new attribute to an affiliate.
Type
Federation function
Syntax
int SM_EXTERN Sm_PolicyApi_AddAttributeToAffiliate (
void*pSessionHandle,
const Sm_PolicyApi_AffiliateAttr_t*pstructAffiliateAttr,
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.
pstructAffiliate
Attr
I
A pointer to a completely filled-in affiliate attribute structure.
pszAffiliateOid
I
A null-terminated string containing the object identifier of an existing affiliate.
 Returns
  • Sm_PolicyApi_Success
    The affiliate attribute was created successfully
  • Sm_PolicyApi_Failure
    The affiliate attribute was not created successfully
  • Sm_PolicyApi_InvalidHandle
    No valid initialization before this call
  • Sm_PolicyApi_NoSession
    No valid administrator session
  • Sm_PolicyApi_NoPrivilege
    The administrator does not have the permission to create an affiliate attribute
  • Sm_PolicyApi_InvalidOid
    The affiliate OID was not found