AppRole Creation using Graph API

S, Chandra Mohan 20 Reputation points
2024-06-17T11:01:41.1833333+00:00

Hi Experts,

I tried to create an appRole using below endPoint and payLoad, but I'm having challenges with some syntax errors in payload. Could someone please help me to resolve this.

https://graph.microsoft.us/v1.0/applications/07cbc1a8-e37e-4e67-b260-51b37100133b/appRoles

{

            "allowedMemberTypes": [

                "Group"

            ],

            "description": "msiam_access1",

            "displayName": "msiam_access1",

            "id": "48b16a5a-594d-470f-b429-7e4d4ba196d8",

            "isEnabled": true,

            "value": null

        }

 

User's image

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2024-06-17T17:38:43.04+00:00

    The "value" property cannot be null. Refer to the documentation for the allowed values:

    value String Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , - . / : ; < = > ? @ [ ] ^ + _ ` { | } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with ..
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.