# Set scopes for IDP on Client level

**URL:** <https://forum.keycloak.org/t/set-scopes-for-idp-on-client-level/7352>\
**Category:** Getting advice\
**Tags:** identity-brokering\
**Created:** [February 12, 2021, 12:28pm UTC](https://forum.keycloak.org/t/set-scopes-for-idp-on-client-level/7352 "2021-02-12T12:28:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SebastianSchenk](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/sebastianschenk/32/2371_2.png) [@SebastianSchenk](https://forum.keycloak.org/u/SebastianSchenk)\
**Post date:** [February 12, 2021, 12:28pm UTC](https://forum.keycloak.org/t/set-scopes-for-idp-on-client-level/7352/1 "2021-02-12T12:28:00Z")

</div>

I have a setup in place where I use microsoft as my identity provider. The configuration screen for identity providers offers the “Default scopes” option. With this field I can defined scopes that are being requested when the user logs in and gets redirected to microsoft.

My problem now is that I have multiple clients and I only want one of those clients to request certain scopes. Is there a way to define scopes on a client base level which are getting sent to the idp. Or as an alternative, can I set the scopes somehow in my JavaScript adapter and tell Keycloak to forward these scopes to the idp?

---

<div class="post-metadata">

**Author:** ![rberge](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/rberge/32/4848_2.png) [@rberge](https://forum.keycloak.org/u/rberge)\
**Post date:** [January 21, 2022, 5:29pm UTC](https://forum.keycloak.org/t/set-scopes-for-idp-on-client-level/7352/2 "2022-01-21T17:29:56Z")

</div>

@sebastionschenk. I don’t see an answer. Are you set up with Keycloak as an identity broker? (per the Server Administration Guide for Identity broker). Thanks.
