---
title: "GET /greengrass/servicerole"
method: GET
path: "/greengrass/servicerole"
---

# GET /greengrass/servicerole

`GET /greengrass/servicerole`

Gets the service role associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region. IoT Greengrass uses this role to verify the identity of client devices and manage core device connectivity information. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-service-role.html">Greengrass service role</a> in the <i>IoT Greengrass Version 2 Developer Guide</i>.

## Response `200`

Success

- GetServiceRoleForAccountResponse
  - `associatedAt` string — The time when the service role was associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.
  - `roleArn` string — The ARN of the service role that is associated with IoT Greengrass for your Amazon Web Services account in this Amazon Web Services Region.

## Other responses

- `480` — InternalServerException

---

[API](https://skmtc.net/aws/apis/greengrassv2.md) · [All operations](https://skmtc.net/aws/apis/greengrassv2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/greengrassv2/versions/f491b1d234d1/schema)
