AliasMod
API Reference
>
AliasMod
| SoapAction | n/a |
| Input Name | ActUsrDsp |
| Output Name | ActUsrDspResponse |
| Input Namespace | n/a |
| Group Name | Xperience |
| Container | XP_MsgBus.xsd |
// Uses the same AliasModRq_MType, but with the Dlt element set to “True”.
UsrSecTokenRetrvRs_MType currentUser = this.GetCurrentUser();
WrappedImsSecurityToken token = new WrappedImsSecurityToken(currentUser.UsrSecTokenRec.samlAssertion);
var aliases = token.GetAliases();
if (aliases != null && aliases.Count() > 0)
{
foreach (var alias in aliases)
{
if (string.Compare(alias.UniqueId, this.AliasUniqueId, true) == 0)
{
var aliasClaimRec = new AliasClaimRec_CType()
{
Alias = alias.Alias,
AliasContext = alias.AliasContext,
AliasDesc = alias.AliasDesc,
AliasDft = alias.AliasDft,
AliasInstRtId = alias.AliasInstRtId,
AppliesToApp = alias.AppliesToApp,
UniqueId = alias.UniqueId
};
var request = new AliasModRq_MType()
{
AliasClaimRec = aliasClaimRec,
Dlt = bool.FalseString,
IMSSubj = currentUser.UsrSecTokenRec.IMSSubj
};
Helper.FillHeader(request);
// NOTE: Async Version
ICallback context = this.messageBus
.Send(request)
.RegisterResponseHandler(this.OnModifyAliasResponse);
if (!context.Receipt.IsValid())
{
string error = Helper.CollectionErrors(context.Receipt.Errors);
this.DisplayIMSOutput(error);
}
else
{
this.DisplayIMSOutput(string.Concat("AliasMod Receipt ID: ", context.Receipt.MessageId));
}
break;
}
}
}
Did this page help you?
Why was this page helpful?
Why wasn't this page helpful?
Thank you for your feedback!
Last updated Mon Dec 9 2024