# 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);
```

## API parameters

`llMessageLinked` function accepts str and id parameters. Their meaning for `SB_ADJUST_GROUP_ROLE` is explained below:

| Variable | Required | Description |
|----------|----------|-------------|
| 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://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/fe746996-bd68-4ba8-a15e-e239ddd741be/a515d896-9240-4175-b82e-2dc7487450f1/Group_abilities_for_roles.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260919%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260919T064500Z&X-Amz-Expires=86400&X-Amz-Signature=497514e9c449be42e1a9d0e7c69b1e8c22d739c76091c4d3855d5a243bc6a383&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");
```