<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [IamRequestBasedTokenManager](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md) &gt; [setScope](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md)

## IamRequestBasedTokenManager.setScope() method

Sets the IAM "scope" value. This value is sent as the "scope" form parameter within the request sent to the IAM token service.

**Signature:**

```typescript
setScope(scope: string): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

scope


</td><td>

string


</td><td>

a space-separated string that contains one or more scope names


</td></tr>
</tbody></table>
**Returns:**

void

