# Get self information of groups and roles Returns information about the currently logged-in user, including group membership and roles Endpoint: GET /api/v2.0/orgs/{orgToken}/users/self Version: 3.0.1 Security: bearer-key ## Path parameters: - `orgToken` (string, required) org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: tab > ). ## Response 200 fields (application/json): - `supportToken` (string) Example: "1171c60d" - `retVal` (object) - `retVal.uuid` (string, required) Example: "123e4567-e89b-12d3-a456-426655440000" - `retVal.name` (string) Example: "Jon Smith" - `retVal.email` (string) Example: "jon.smith@mail.com" - `retVal.userType` (string) Enum: "REGULAR", "SERVICE", "SCAN_SUMMARY_RECEIVER" - `retVal.accountStatus` (string) Enum: "ACTIVE", "INACTIVE", "LOCKOUT" - `retVal.roles` (array) - `retVal.roles.contextToken` (string) Depending on the value of contextType, this can be: + orgToken (org UUID by running Entities - Organization > Get User Organization) or Api Token (from the Mend SCA App: tab > ). + productToken (product UUID (by running Entities - Organization > Get Organization Products) or Product Token (from the Mend SCA App: tab > . + projectToken (project UUID by running Entities - Product > Get Product Projects) or project Token (from the Mend SCA App: tab > ). Example: "123e4567-e89b-12d3-a456-426655440000" - `retVal.roles.contextName` (string) Example: "My Project" - `retVal.roles.contextType` (string) Type of entity the role will be associated with Enum: "orgs", "products" - `retVal.roles.role` (string) Enum: "DEFAULT_APPROVER", "ADMIN", "ALERT_EMAIL_RECEIVER", "ALERTS_IGNORER", "LICENSE_AND_COPYRIGHT_ASSIGNER", "AUDITOR", "USER", "PRODUCT_INTEGRATOR", "SBOM_EXPORTER" - `retVal.activationLink` (string) - `retVal.groupNames` (array) ## Response 400 fields (*/*): - `supportToken` (string) Example: "1171c60d" ## Response 403 fields (*/*): - `supportToken` (string) Example: "1171c60d"