# Grant Permissions usage in Browser Library

**URL:** <https://forum.robotframework.org/t/grant-permissions-usage-in-browser-library/5598>\
**Category:** Browser\
**Created:** [24 April 2023 16:55 UTC](https://forum.robotframework.org/t/grant-permissions-usage-in-browser-library/5598 "2023-04-24T16:55:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krantikumara](https://avatars.discourse-cdn.com/v4/letter/k/dbc845/32.png) [@krantikumara](https://forum.robotframework.org/u/krantikumara)\
**Post date:** [24 April 2023 16:55 UTC](https://forum.robotframework.org/t/grant-permissions-usage-in-browser-library/5598/1 "2023-04-24T16:55:55Z")

</div>

Hi,

I am trying to automate MS Teams on Chrome web browser using Browser Library in Robot Framework. I am facing issue while automating dial a call from MS Teams. It is asking to grant permissions for Microphone and Camera. I have used “Grant permission” keyword as below.  
Grant Permissions [Microsoft Teams](https://teams.microsoft.com/_#/calls/speed-dial) microphone

I am getting below error:ValueError: Argument ‘permissions’ got value ‘[Microsoft Teams](https://teams.microsoft.com/_#/calls/speed-dial)’ that cannot be converted to Permission: Permission does not have memberAvailable: ‘accelerometer’, ‘accessibility\_events’, ‘ambient\_light\_sensor’, ‘background\_sync’, ‘camera’, ‘clipboard\_read’, ‘clipboard\_write’, ‘geolocation’, ‘gyroscope’, ‘magnetometer’, ‘microphone’, ‘midi’, ‘midi\_sysex’, ‘notifications’, ‘payment\_handler’ and ‘push’

Can any one help here or suggest me how to use Grant permission keyword in the Script.  
Thank you so much in advance.  
Regards,  
-kranti

---

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [25 April 2023 00:27 UTC](https://forum.robotframework.org/t/grant-permissions-usage-in-browser-library/5598/2 "2023-04-25T00:27:22Z")

</div>

Hi Kranti,

[Grant Permissions](https://marketsquare.github.io/robotframework-browser/Browser.html#Grant%20Permissions) takes 2 arguments, is a list of permissions to grant, and optionally the origin site to grant permissions to.

```python
 	 Grant Permissions Microsoft Teams microphone

```

Given `Microsoft Teams` is neither a permission nor a url, it’s not surprising you got an error.

you could try this

```python
 	 Grant Permissions microphone

```

or

```python
 	 Grant Permissions microphone https://your.teams.server/path/to/teams

```

Dave.

---

<div class="post-metadata">

**Author:** ![krantikumara](https://avatars.discourse-cdn.com/v4/letter/k/dbc845/32.png) [@krantikumara](https://forum.robotframework.org/u/krantikumara)\
**Post date:** [25 April 2023 06:46 UTC](https://forum.robotframework.org/t/grant-permissions-usage-in-browser-library/5598/4 "2023-04-25T06:46:20Z")

</div>

Thank you so much it is working now.
