detroit
5 years agoCreator I
rest api AML
Is it possible to send body with AML to rest api and get aml response?
I could create a method that accepts string and parse the aml and reply but not sure how that would apply on the rights (tr...
You can pass in the AML and the IdentityName of that user and use the following code:
var identityName = "Administrators";
var identity = Aras.Server.Security.Identity.GetByName(identityName);
bool permissionWasSet = false;
try
{
permissionWasSet = Aras.Server.Security.Permissions.GrantIdentity(identity);
return item.apply();
}
finally
{
if (permissionWasSet)
{
Aras.Server.Security.Permissions.RevokeIdentity(identity);
}