GetSubjectAttributes

Syntax

SubjectAttributesResult GetSubjectAttributes(MbId tMbSec)

Parameters

tMbSec. Repository connection moniker.

Description

The GetSubjectAttributes operation gets information about links between user attributes and attributes of external storage areas/domains with information about security subjects.

Comments

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.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetSubjectAttributes xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMbSec xmlns="">
  <id>JCAEDGIAEJIIGOAEFHCJFBCOOJFHLPDECIEENLOPENFKIIGD!M</id>
  </tMbSec>
  </GetSubjectAttributes>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetSubjectAttributesResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<meta xmlns="">
<map>
<it>
<attrKey>
  <k>3</k>
  <id>EMAIL</id>
  </attrKey>
  <provider>1</provider>
  <extAttrName>EMAIL</extAttrName>
  </it>
<it>
<attrKey>
  <k>1</k>
  <id>ACCESS</id>
  </attrKey>
  <provider>1</provider>
  <extAttrName>USER_ACCESS</extAttrName>
  </it>
<it>
<attrKey>
  <k>3</k>
  <id>EMAIL</id>
  </attrKey>
  <provider>2</provider>
  <extAttrName>USER_EMAIL</extAttrName>
  </it>
<it>
<attrKey>
  <k>1</k>
  <id>ACCESS</id>
  </attrKey>
  <provider>2</provider>
  <extAttrName>USER_ACCESS</extAttrName>
  </it>
  </map>
<providers>
<it>
  <type>1</type>
  <name>LDAP</name>
  </it>
<it>
  <type>2</type>
  <name>OIDC</name>
  </it>
<it>
  <type>3</type>
  <name>ExtService</name>
  </it>
  </providers>
  </meta>
  </GetSubjectAttributesResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetSubjectAttributes" :
{
"tMbSec" :
{
"id" : "JCAEDGIAEJIIGOAEFHCJFBCOOJFHLPDECIEENLOPENFKIIGD!M"
}
}
}

JSON response:

{
"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:

Working with Repository