SubjectAttributesResult GetSubjectAttributes(MbId tMbSec)
tMbSec. Repository connection moniker.
The GetSubjectAttributes operation gets information about links between user attributes and attributes of external storage areas/domains with information about security subjects.
To execute the operation, in the tMbSec field specify repository connection moniker. The moniker can be obtained on executing the OpenMetabase operation.
The operation results in the information about created links between user attributes and attributes of external storage areas/domains.
Below is the example of getting information about link between user attributes and attributes of external storage areas/domains. The request contains repository connection moniker. The response contains the obtained collection of attribute links.
{
"GetSubjectAttributes" :
{
"tMbSec" :
{
"id" : "JCAEDGIAEJIIGOAEFHCJFBCOOJFHLPDECIEENLOPENFKIIGD!M"
}
}
}
{
"GetSubjectAttributesResult" :
{
"meta" :
{
"map" :
{
"it" :
[
{
"attrKey" :
{
"k" : "3",
"id" : "EMAIL"
},
"provider" : "1",
"extAttrName" : "EMAIL"
},
{
"attrKey" :
{
"k" : "1",
"id" : "ACCESS"
},
"provider" : "1",
"extAttrName" : "USER_ACCESS"
},
{
"attrKey" :
{
"k" : "3",
"id" : "EMAIL"
},
"provider" : "2",
"extAttrName" : "USER_EMAIL"
},
{
"attrKey" :
{
"k" : "1",
"id" : "ACCESS"
},
"provider" : "2",
"extAttrName" : "USER_ACCESS"
}
]
},
"providers" :
{
"it" :
[
{
"type" : "1",
"name" : "LDAP"
},
{
"type" : "2",
"name" : "OIDC"
},
{
"type" : "3",
"name" : "ExtService"
}
]
}
}
}
}
public static SubjectAttributesResult GetSubjectAttributes(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
var tGet = new GetSubjectAttributes()
{
tMbSec = new MbId() { id = moniker }
};
// Get information about links between user attributes and attributes of external storage areas/domains
var result = somClient.GetSubjectAttributes(tGet);
return result;
}
See also: