# SB_ADJUST_GROUP_ROLE

Adds or removes the group role to the group member.

## Command usage

```csharp
llMessageLinked(LINK_SET, SB_ADJUST_GROUP_ROLE, string str, key id);
```

```snippet adminbot-api-parameters-RxnGv0pgFW command="SB_ADJUST_GROUP_ROLE"
str | yes | an action to perform and the role name.<br><br>An action can be either assign or remove.<br>Role name is case sensitive.<br><br>Examples:<br>`"assign Officers"`<br>`"remove Active tenants"`
id  | yes | avatar UUID
```

## Comments

There are some requirements to the bot's abilities:

* To assign members to the role:
  * bot has to be in this role
  * bot has to have an **"Assign Members to Assigner's Roles"** group ability
* To remove members from a role:
  * bot has to have a **"Remove members from Roles"** group ability

Edit group profile to assign these abilities to the bot:

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/5bbede90-94c6-47f9-a648-1772b57fd650/Group_abilities_for_roles.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T140000Z&X-Amz-Expires=86400&X-Amz-Signature=33d65ef29bca1748103bbcac7fce79fd226a687d78acc941c2fa49c55d765213&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =720x150")

## Examples

Assign member to the role:

```csharp
llMessageLinked(LINK_SET, SB_ADJUST_GROUP_ROLE, "assign Officers", "042536ca-dc19-45ef-bd3c-2f3c829d4e56");
```

Remove member from the role:

```csharp
llMessageLinked(LINK_SET, SB_ADJUST_GROUP_ROLE, "remove Active tenants", "042536ca-dc19-45ef-bd3c-2f3c829d4e56");
```