Grant a User Identity Access to a Device
Grants a specified user identity access to a specified device.
Grants a specified user identity access to a specified device.
Code:
await seam.userIdentities.grantAccessToDevice({
user_identity_id: "4e9b7099-bcad-4af6-bb78-88b96cc347bd",
device_id: "6de31c5d-c8a3-4b25-a86b-a9c5075a5eb8",
});Output:
// voidGrants a specified user identity access to a specified device.
Code:
curl --include --request POST "https://connect.getseam.com/user_identities/grant_access_to_device" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"user_identity_id": "4e9b7099-bcad-4af6-bb78-88b96cc347bd",
"device_id": "6de31c5d-c8a3-4b25-a86b-a9c5075a5eb8"
}
EOFOutput:
{}Grants a specified user identity access to a specified device.
Code:
seam.user_identities.grant_access_to_device(
user_identity_id="4e9b7099-bcad-4af6-bb78-88b96cc347bd",
device_id="6de31c5d-c8a3-4b25-a86b-a9c5075a5eb8",
)Output:
NoneGrants a specified user identity access to a specified device.
Code:
seam.user_identities.grant_access_to_device(
user_identity_id: "4e9b7099-bcad-4af6-bb78-88b96cc347bd",
device_id: "6de31c5d-c8a3-4b25-a86b-a9c5075a5eb8",
)Output:
nilGrants a specified user identity access to a specified device.
Code:
$seam->user_identities->grant_access_to_device(
user_identity_id: "4e9b7099-bcad-4af6-bb78-88b96cc347bd",
device_id: "6de31c5d-c8a3-4b25-a86b-a9c5075a5eb8"
);Output:
Grants a specified user identity access to a specified device.
Code:
seam user-identities grant-access-to-device --user_identity_id "4e9b7099-bcad-4af6-bb78-88b96cc347bd" --device_id "6de31c5d-c8a3-4b25-a86b-a9c5075a5eb8"Output:
{}Request Parameters
device_id String (Required)
ID of the managed device to which you want to grant access to the user identity.
user_identity_id String (Required)
ID of the user identity that you want to grant access to a device.
Response
void
Last updated
Was this helpful?

