change context to principalid for internal api