Class MegaFormScope
Explicit tenant/user context for an SDK call. Pass this when the caller runs
OUTSIDE a MegaForm request (background job, scheduler, another module) where the
ambient IPlatformContext is not available or not the right tenant. When
omitted, the ambient platform context is used.
public sealed class MegaFormScope
- Inheritance
-
MegaFormScope
- Inherited Members
Properties
DisplayName
Display name for audit/inbox operations when available.
public string? DisplayName { get; set; }
Property Value
IpAddress
Optional client IP for audit-oriented operations.
public string? IpAddress { get; set; }
Property Value
IsAdmin
Whether the actor should be treated as a site administrator.
public bool? IsAdmin { get; set; }
Property Value
- bool?
IsAuthenticated
Whether the actor is authenticated. Defaults from UserId when unset.
public bool? IsAuthenticated { get; set; }
Property Value
- bool?
IsSuperUser
Whether the actor should be treated as a host/super user.
public bool? IsSuperUser { get; set; }
Property Value
- bool?
PortalId
Portal / site id the operation runs against.
public int PortalId { get; set; }
Property Value
Roles
Role names used by workflow role-queue matching.
public List<string> Roles { get; set; }
Property Value
UserEmail
Acting user's email address when available.
public string? UserEmail { get; set; }
Property Value
UserId
Acting user id (0 = anonymous/system).
public int UserId { get; set; }
Property Value
UserName
Acting username, used by workflow inbox matching when available.
public string? UserName { get; set; }