rokwire / core-building-block

Building block which handles core functions for the Rokwire platform - users, accounts, profiles, organizations, authentication and authorization.
Apache License 2.0
3 stars 2 forks source link

[FEATURE] Load user accounts that has specific auth group #708

Closed dobromirdobrev closed 7 months ago

dobromirdobrev commented 7 months ago

Is your feature request related to a problem? Please describe. Add possibility for loading accounts that has specific auth group.

Describe the solution you'd like Example:

Request: GET: /admin/applications/groups/{group_id}/accounts

Response:

[
  {
    "anonymous": false,
    "app_id": "9766",
    "apps": [
      {
        "code": "client",
        "id": "9766",
        "name": "Illinois"
      },
      {
        "code": "admin",
        "id": "9768",
        "name": "Rokwire Admin"
      }
    ],
    "auth_types": [
      {
        "active": true,
        "code": "illinois_oidc",
        "id": "f00ae5b0-9929-11ec-867b-0a58a9feac02",
        "identifier": "669521855",
        "params": null,
        "unverified": false
      },
      {
        "active": true,
        "code": "email",
        "id": "472cce00-1af9-11ee-ae84-0a58a9feac02",
        "identifier": "dobromir.i.dobrev@gmail.com",
        "params": null,
        "unverified": false
      }
    ],
    "date_created": "2022-03-01T06:36:34.163Z",
    "date_updated": "2024-04-04T08:10:16.614Z",
    "external_ids": {
      "net_id": "ddobrev",
      "uin": "669521855"
    },
    "first_name": "Dobromir",
    "groups": [
      ...
    ],
    "id": "f00ae5bd-9929-11ec-867b-0a58a9feac02",
    "last_name": "Dobrev",
    "org_id": "0a2eff20-e2cd-11eb-af68-60f81db5ecc0",
    "params": null,
    "permissions": [
      ...
    ],
    "privacy": {
      "public": false
    },
    "roles": [
      ...
    ],
    "scopes": [
      ...
    ],
    "system": false,
    "system_configs": null,
    "verified": false
  }
]

Additional context Related to the email: University Monday 2024/04/07 / 2024/04/08, point 2.5