NAME

User::Information - generic module for extracting information from user accounts

VERSION

version v0.04

SYNOPSIS

use User::Information;

my User::Information::Base $result = User::Information->me;

This module allows extracting information on user accounts.

This package inherits from Data::Identifier::Interface::Known.

METHODS

lookup

my User::Information::Base $result = User::Information->lookup($type => $request, %opts);
# or:
my User::Information::Base $result = User::Information->lookup($request, %opts);
# e.g.:
my User::Information::Base $result = User::Information->lookup(sysuid => 1000);

Performs a lookup of a user.

The lookup is based on a type and a request. The request depend on the type.

The following types are supported:

from

This is used if request is some blessed object can that be used for lookups.

Currently the same options are supported as by "attach" in User::Information::Base.

me

my User::Information::Base $result = User::Information->me(%opts);

Looks up the current user including information known via the process's environ.

The same options as per "lookup" are supported.

If running in a CGI environment this will report the local user. See "cgi" for the CGI user.

See also: "lookup", "cgi".

cgi

my User::Information::Base $result = User::Information->cgi(%opts);

Looks up the current CGI user (the user in front of a browser).

The same options as per "lookup" are supported.

See also: "lookup".

local_node

my User::Information::Base $result = User::Information->local_node(%opts);

Looks up the local node (system). This is a singleton.

No options are defined as of now.

See also: "lookup".

AUTHOR

Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2025 by Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)