Skip to main content
Soracom

Docs

Managing SIMs in a Group

View IoT SIMs assigned to a group.

Last updated:

The SIMs in this group tab on a group's settings page lists the IoT SIMs that belong to the group. This view provides almost all of the functionality of the SIM Management screen, but limits the results to the SIMs that belong to the selected group.

To open this tab, Sign in to the User Console. From the Menu, open the Groups screen. Click the Name of the group you want to view, then select the SIMs in this group tab.

Controlling Which SIMs a SAM User Can See

The SIMs in this group tab retrieves its list using the Query:searchSimsByGroup API, which specifies the group ID in the API path. Because SAM conditions can evaluate path variables, you can grant a SAM user permission to list and search only the SIMs that belong to a specific group.

The following permission:

  • Allows the SAM user to list groups.
  • Allows the SAM user to view the specified group and the SIMs that belong to it.
  • Denies listing and searching all SIMs regardless of group.
{
  "statements": [
    {
      "effect": "allow",
      "api": ["Group:listGroups"]
    },
    {
      "effect": "allow",
      "api": ["Group:getGroup", "Query:searchSimsByGroup"],
      "condition": "pathVariable('group_id') == '<group ID>'"
    },
    {
      "effect": "deny",
      "api": [
        "Query:searchSims",
        "Sim:listSims",
        "Subscriber:listSubscribers"
      ]
    }
  ]
}

Do not remove the deny statement for the Query:searchSims API, Sim:listSims API, and Subscriber:listSubscribers API. Without it, if these APIs are allowed by a role or by the default SAM user permissions, the SAM user can list and search all SIMs regardless of group. A deny permission always takes precedence over an allow permission (see Permission Hierarchy).

For more information on writing permissions, refer to the Users & Roles documentation.

Limitations

Only listing and searching SIMs (the Query:searchSimsByGroup API) can be restricted per group. APIs that operate on an individual SIM, such as the Sim:getSim API, Sim:activateSim API, or Sim:terminateSim API, specify a SIM ID rather than a group ID, and therefore cannot be restricted using a group condition.

If you grant a SAM user permissions for SIM operation APIs, the User Console will only show the SIMs that belong to the allowed group, but the SAM user can still call those APIs against a SIM outside the group if they know its SIM ID. To strictly prohibit operations on SIMs outside a group, allow the operation APIs individually per SIM using a pathVariable('sim_id') condition instead.

Search

Esc to close / Enter to view results