Home > @i2analyze/i2connect > services > IRequestInformation > user
services.IRequestInformation.user property
Gets information about the user who made the request.
Signature:
readonly user: {
readonly principal: string;
readonly displayName: string;
readonly securityPermissions: readonly ISecurityPermission[];
readonly groups: readonly string[];
readonly commandAccessPermissions: readonly string[];
};
Returns: { readonly principal: string; readonly displayName: string; readonly securityPermissions: readonly ISecurityPermission[]; readonly groups: readonly string[]; readonly commandAccessPermissions: readonly string[]; }
Introduced: API version 1.2
Remarks
Connectors receive user information only when you configure them to do so. To specify that requests from the server include this potentially sensitive data, ensure that the connector's send-sensitive-headers
setting is true
in the i2 Connect gateway.
For more information, see [Adding a connector to the topology](https://docs.i2group.com/analyze/i2_connect_topology.html).